301 Redirect Code Generator

Use permanent 301 redirect to preserve search engines rank.


Enter URL of old page:


Enter URL of new page:


Select redirect code type:


Click the Generate Redirect Code to redirect the visitor from your old page to the new page:



Click on the 'Select Code' button to highlight and copy the generated redirect code snippet.

Place the code in to the root .htaccess file to redirect visitor to the new URL.

If the old or new page is in a sub-directory folder, simply add /folder-name/page.html to the generated code.


.htaccess Redirect URL Information

Redirect type Redirect side Old page file type Old URL server type Is permanent 301 redirect?
.htaccess Server-side all Apache / Linux yes