Browse > Home / Webmaster Tutorials / Locking the “www” in URL’s

| Subcribe via RSS

Locking the “www” in URL’s

May 30th, 2009 Posted in Webmaster Tutorials

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!

Related posts:

  1. Prevent Image Hotlinking It’s always a pain in the ass if you are...
  2. Find .edu blogs for backlinks using Google This is a simple method that is very effective. You...
  3. Firefox Start Page Trick Firefox has a great feature where you can set multiple...

Related posts brought to you by Yet Another Related Posts Plugin.

2 Responses to “Locking the “www” in URL’s”

  1. Teh Ak47 Says:

    TY For Sharing.

    xenu.ws


  2. Benjoo Says:

    very nice


Leave a Reply

You must be logged in to post a comment.