How to Manage 301 Page Redirects
In this post We have share manage 301 Page redirects. If you rename pages of your website, a 301 redirect lets you automatically redirect visitors and search engine spiders to your new pages. Replace “old_page_url” with the name of your old Web page from which you want to redirect traffic and replace “new_page_url.html” with the name of the new Web page to which you want to redirect traffic.
.htaccess: You can create a .htaccess file with the following code:
RewriteEngine on rewritecond %{http_host} ^example.com [nc] rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]
PHP: old_page_url.php
ASP.NET: old_page_url.aspx
ASP: old_page_url.asp
<%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "Location", "http://www.new_url.com" %>