Locking the “www” in URL’s

Webmaster Tutorials Add comments

This technique will make sure that all visitors go to the same URL. There is a difference between http://www.site.com and site.com . This may also result in Pagerank dropping/not rising.

What is a pagerank?
Google’s Scale of Measurement which determines in Google’s eyes how relevant or important a website is. The higher your pagerank is (0->10) , the better your site is and the better you will get listed.

So let’s start with the tutorial:

Create a file called “.htaccess” (without ” “)
This file will contain the following code:


RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.warezteacher\.com$ [NC]
RewriteRule ^(.*) http://www.warezteacher.com/$1 [QSA,L,R=301]

In this case the domain is http://www.warezteacher.com/ so you need to replace it with the one you are using.

After you’ve followed each step there is just one last thing to do; open a new window in your favourite browser (Firefox ^^), and type down the url of your site without the “www”. if it redirects without a problem then you have succesfully completed this tutorial!

Greetz

Leave a Reply

You must be logged in to post a comment.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in