Redirect a single page using htaccess

If a page on your website has been deleted or you have change URL locations you can create simple 301 redirects using your htaccess file.

Add this to your htaccess file to redirect single pages.

Redirect 301 /oldpage.html http://www.example.com/newpage.html
Redirect 301 /oldfolder http://www.example.com/folder/

– LAST TESTED DECEMBER 9, 2019

Code not working? Let us know in the comments below.

Latest Snippets

Leave a comment