A permanent 301 redirect in your .htaccess file lets search engines and others know that an old link has been replaced by a new one. It's the recommended method for directing traffic from an existing page.

Some common uses of a 301 .htaccess redirect:

Redirect individual files on the same domain
An old file has moved locations, or the information is now contained in a new file.

Redirect an old domain to a new domain

You've moved a website from an old domain to a new one, and you want any old links to go to the new site.

Force www. version of domain to be used or you can force non www. version of domain to be used
Visitors access and link to your website in multiple ways such as example.com, and www.example.com and you can set one as the preferred method that your site displays.

Redirect all files with certain extension
You used to have all of your files using an extension like .php and have converted everything to .htm so using a 301 redirect you can update all links to use the new extension.

Similar Threads: