301 Redirect- Direct your Website to another Domain / page !!


Hey Guys, Have you ever noticed how sometimes the page you seem to be browsing suddenly has some message show up  saying 404 error , file not found? Well it seems really  frustrating isnt it ? There is a way in which we can not show this message  up if we had few links on our website moved to another domain , eg www.pragmaticworks.com/default.aspx has been changed to say www.bidn.com.. Well there are number of ways in which we can take care of it , one of the option is 301 REDIRECT
301 Redirect takes care of all such issues where you can direct any page of your website to any other page or any other Domain of your website . Also depending upon the WEB SERVER we use we have different ways for 301 redirect
.Apache server
This is the easiest way to redirect all your stuff from one end to another , just create a .htaccess file  with the code as below and it will send all th traffic to the new domain now on :)
redirect 301 /old/old.htm http://www.you.com/new.htm.
Now the question is How to Create an htacess file .. Well this aint so hard to do . Just enter the above line of code in a notepad and save it as .htaccess on your local machine .. Remember to add a . sign before htacccess ..and when you are ready upload it under your root directory for your website
2. Windows Server
Well here the thing is little bit diiferent than it seems .. We have a couple of ways to redirect your traffic . One way which was pretty simple was to use a tool by HeliconTech Company known as "Isapi_Rewrite"
This will take care of your htaccess file . It uses regular expression to perform redirects and one can get things done in a jiffy if followed the documentation well ..Please check out the link below ..
http://www.helicontech.com/
I will keep adding more to this when and when I find anything interesting for this blog
Thanks,
Priti

No comments:

Post a Comment