Empowering a brighter world through superior education is our commitment.

Online Calculators & Tools

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 changednot changedold page on same server
not changedchangedold page on new server
changednot changedold page on same server
changedchangedold page on old server

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

Redirect options

Redirect typeRedirect sideOld page
file type
Old URL server typeIs permanent
301 redirect?
PHPServer-side.phpApache / Linuxyes
ASPServer-side.aspIIS / Windowsyes
ASP.NETServer-side.aspxIIS / Windowsyes
Apache .htaccessServer-sideallApache / Linuxyes
IIS web.configServer-sideallIIS / Windowsyes
HTML meta tagClient-side.htmlallno
JavascriptClient-side.htmlallno
jQueryClient-side.htmlallno

 

URL redirection