Online 301 Redirect Code Generator

Online Web Code Test | Online Image Picker | Online Color Picker

301 Redirect Code Generator

Use permanent 301 redirect to preserve search engines rank.

The code generator supports web pages redirection of html, php, asp, aspx files and .htaccess redirect.

Redirect geneartor

Enter URL of old page:

Enter URL of new page:

Select redirect type:

 

Generated redirect code to replace old page code:

Click on code to copy text to replace old URL page file with redirection code.


What is the 301 redirect?

It is special information (code) despatched to the browser or search bot by using your server on a certain page go to. The code means moved completely.

How to pick a right generator for a permanent redirect?

If your server is Apache and You have get right of entry to to the configuaration file You may additionally need to select RewriteRule or RedirectMatch generators. Use RedirectMatch generator simplest if already have a number of such redirects you want to preserve. In case You have get right of entry to to PHP files best You can choose our PHP generator.

Why must I use redirections?

To hold your web page searchable through engines like google like Google you want to use 301 redirect to old pages after url exchange. Without this facts search bots cannot recognize (in maximum of the instances) that web page url turned into changed, but the content is the equal and valuable for to be visible in search results. If your profits relies upon on organic search, there's a totally special cause to do redirects inside the right manner. So, if you decided to alternate your domain or just rename web page url you need to make redirects. One of our code technology tools may additionally assist you in such conditions.

When need to I apply a permanent redirect?

1. You determined to alternate url for a few web page to make it more applicable to page content material for a better consumer revel in. - You need redirect from old url to new url.

2. You deleted some web page and created a new page with comparable content material. - You may additionally need to make such redirect to preserve PageRank and positions in search.

3. You replaced the whole web page with a newly built one and you've a brand new url structure. You will need to do mass redirects. Bulk redirect generators will help with this venture.

"Redirect" vs "RewriteRule"

If You have already got Apache redirect code like Redirect 301 "/old" "http://instance.Com/new", note that those regulations are dealt with with "mod_alias", however no longer "mod_rewrite". While both modules can do everlasting redirects, "mod_rewrite" is more functional. Mod_rewrite will make rewrite machine more bendy and can help you within the destiny. For instance, "mod_alias" can't absolutely take care of query strings. These Apache modules have separate go with the flow and Redirect policies can conflict with Your new "mod_rewrite" policies. Also, be cautious, because the rule works on a directory basis and all documents internal directories and subdirectories could be redirected too. So, If you need to use batch on line redirect generator and you have a small amount of Redirect 301 rules, we will suggest rewriting those guidelines with "mod_rewrite" functionality to hold the common sense easy. For simple redirects and some heavy load organisation answers, mod_alias can be a terrific desire too.

WordPress

Maybe, maximum popular server for WordPress is Apache. While many SEO plugins offer a possibility to add and control PHP redirects in WordPress admin panel, we can not advocate the use of permanent redirect WordPress plugins because Apache redirects are a great deal quicker and, therefore, higher for person experience and for search engine marketing in many instances. Some plugins can work with Apache configuration record at once, but it's miles a less comfortable method, so, higher to apply different techniques.

Where to put redirect code

Domain
name
Hosting
server
Redirect code
placement
not changed not changed old page on same server
not changed changed old page on new server
changed not changed old page on same server
changed changed old page on old server

* Only with .htaccess redirect: add redirect code to httpd.conf file or to .htaccess file.

Redirect options

Redirect type Redirect side Old page
file type
Old URL server type Is permanent
301 redirect?
PHP Server-side .php Apache / Linux yes
ASP Server-side .asp IIS / Windows yes
ASP.NET Server-side .aspx IIS / Windows yes
Apache .htaccess Server-side all Apache / Linux yes
IIS web.config Server-side all IIS / Windows yes
HTML meta tag Client-side .html all no
Javascript Client-side .html all no
jQuery Client-side .html all no

 


Online Calculators

Online Web Code Test | Online Image Picker | Online Color Picker

Online Calculators