What is 301 redirect?

Friday, February 4, 2011

301 redirect is the best method used to preserve the current search engine rankings when redirecting web pages or a website. After the code, the URL of the missing or renamed page is noted, followed by a space, then followed by the new location or file name.

You can implement the 301 redirect by creating a .htaccess file.

What is a .htaccess file?
The .htaccess file contains specific instructions for certain requests, it includes security, redirection and how to handle the customer error page.

To create a .htaccess file, please follow the steps given below:
1. Open the notepad name and save the file as .htaccess.
2. Upload the .htaccess file to server..
3. On the .htaccess file place the code.

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^olddomainname.com [nc]
rewriterule ^(.*)$ http://www.newdomain.com/$1 [r=301,nc]

(Note: Replace the old domain name and new domain)

4. Save the .htaccess file
5. Just test it by typing in the old address to the page you’ve
changed. You should be immediately taken to the new
location.

Notes: Don’t add “http://www” to the first part of the statement. This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

During the next update, the old file name and path will be
dropped and replaced with the new one.

To know more about click on the link:

http://www.htaccesseditor.com/

No comments:

Post a Comment

 

Most Reading

Sidebar One

+1-800-574-0902 +44-20-7993-2673 (ID: 173296)