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.

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

 

URL redirection ►

 


See also


WEB TOOLS
CONTACT