![]() |
Thinkful Solutions Inc. Web Design Information |
|
|
Web Site Redirection - How to Implement a 301 Redirect
You just created a new web site but want to pass on the search engine rankings of the old one to the new one. What is the most effective and spider/visitor friendly strategy to implement your web site redirection? You should use a 301 redirect. What is a 301 redirect? It is used when you want to redirect your web site or web pages. The code "301" is interpreted as "moved permanently". 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. Requirements for using a 301 redirect Apache server. .htaccess file How do I implement a 301 redirect? 1. Create an .htaccess file - you can use Notepad to create the file. Remember to insert a period at the beginning of the file name with no extension at the end (ie .htaccess). 2. Create a line of code that reads like this: Redirect permanent / http://www.domainname.com/ The first "/" indicates that everything from the top level of the site down should be redirected. All current links within the search engine results from the old site will redirect to the top level of your new site. If you already have an .htaccess file on your server, open it up in Notepad and look for lines of code that are there. If lines of code are present, don't change any of them but leave a space, then insert the above 301 redirect code. 3. Save the .htaccess file to your root directory and upload it to your server. 4. Test it out by typing in the old web site address. You should immediately be redirected to your new web site address. Redirecting a Web Page The above example shows how to redirect a whole web site. What if you want to just redirect a web page that you have changed but want to keep the rankings of the old page? Follow the same steps as above but write the code like this: redirect 301 /old/old.htm http://www.you.com/new.htm /old/old.htm (the original folder path and file name) http://www.you.com/new.htm (new path and file name) Note: Conclusion: Herman Drost is the Certified Internet Webmaster (CIW) owner and author of http://www.iSiteBuild.com - Affordable Web Site Design and Web Hosting. Subscribe to his "Marketing Tips" newsletter for more original articles. subscribe@isitebuild.com. Read more of his in-depth articles at: http://www.isitebuild.com/articles
MORE RESOURCES: Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/11/d173908847/htdocs/thinkfulsolutions/web-design/inc/rss.inc on line 81 Warning: fopen(http://news.google.com/news?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-22,GGLG:en&q=Debt-Relief&output=rss) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/11/d173908847/htdocs/thinkfulsolutions/web-design/inc/rss.inc on line 81 could not open XML input |