Showing posts with label web host. Show all posts
Showing posts with label web host. Show all posts

Thursday, December 13, 2007

Tutorial: Solution for changing the New Domain Name (modifying the .htaccess file)

Well this tutorial is on overcoming the problem when you do change your domain name to the new one. Refer to my last article. Let us, straight to the point. I consider in this case your old web site did have the .htaccess file in the web directory or the web host allows you to put the .htaccess file. There is one thing that should be considered; generally the web hosting that use the Apache server will have that facility.

Take this code for the example in the .htaccess.

When you do that actually you tell the server to ask the browser to load the new site when the visitors are in the old domain name. So, how about the searching engine? The searching engine also follow the link to index the new URL, and transfer the page rank of your old page to the new one.

But what if we don’t have the .htaccess file or the web host doesn’t allow doing so? Well, you could set up an automatically redirecting page by inserting the following META tag in the "head" section of your web page. Keep it all in one line in your page.



Well, I hope this tutorial will help you a lot out there!! Adios!!!