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.

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.

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
.htaccess Server-side all Apache / Linux yes
IIS Server-side all IIS / Windows yes
HTML meta tag Client-side .html all no

 

Write how to improve this page

  URL
  Name
  E-mail