Welcome to WebmasterWorld Guest from 54.226.194.180

Message Too Old, No Replies

PageRank difference between 'www' and no 'www'

     

Regent

10:41 pm on Oct 27, 2005 (gmt 0)

10+ Year Member



Hello,

I have a website that has a PageRank of 6 for www.mydomain.com but has a PageRank of 5 for mydomain.com. Is this something to be concerned about? May Google think they are 2 different sites?

Thanks.

cherryo

1:35 am on Oct 28, 2005 (gmt 0)

10+ Year Member



From what I've read recently, absolutely. You'll want to choose one form over the other (seems like an easy choice) and do a redirect to that choice. I'm no expert but a search on this forum should give you the info you need to place in your .htaccess to do this.

Andkon

6:29 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



"I'm no expert but a search on this forum should give you the info you need to place in your .htaccess to do this."

I have the same problem, but I've searched and searched and found nothing for .htaccess. Anybody have any better luck?

WW_Watcher

6:39 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



Gonna Cost Each Of Ya A Link!

I add to my .htaccess file, to redirect from the non-www, to the www. Replace the "sitename" with your Site Name.
________________________________________
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sitename\.com
RewriteRule (.*) [sitename.com...] [R=301,L]
____________________________________________
Feel free to e-mail me to get my site link info!

Back to watching
WW_Watcher

jd01

7:50 pm on Nov 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...links? But, you forgot to mention the first line Options + FollowSymLinks may or may not be necessary, depending on server configuration, and if set incorrectly will cause a server error, so may need to be tested both ways.

I would only give 1/2 a link for an incomplete answer, like the text, without the URL =)

Justin

suggy

8:05 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



Anyone know how to do it on a Windows IIS?

Andkon

10:52 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



From another I site, I got this code and it works for me!


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST}!^www\.sitehere\.com [NC]
RewriteRule ^(.*) http://www.sitehere.com/$1 [L,R=301]
</IfModule>

Does anybody who did this (or something similar) know whether or not the page ranks goes up? For example with me

www.mysite.com is 5
mysite.com is 4
www.mysite.com/dir/ is 5
mysite.com/dir/ is 3

would anything increase?

g1smd

12:16 am on Nov 4, 2005 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month




They get combined after a few months, and may go up by a small amount.

greenfrog

12:32 am on Nov 4, 2005 (gmt 0)

10+ Year Member



Suggy,

You can do this on windows by using a software called ISAPI_rewrite. This is a component based url rewriting tool, similar to what they are describing for linux/unix. It is a basic isapi filter and it is fairly inexpensive, but some hosts prohibit it's use, you'll have to check w/ yours.

Once you have the tool you will you will have a httpd configuration file. In that file you will put something like:

RewriteCond Host: ^domain\.com
RewriteRule (.*) http\://www\.domain\.com$1 [I,RP]

[obvious - make sure that you are not putting links to the non-www on your web pages]

g1smd

1:04 am on Nov 4, 2005 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Not so obvious:

Beware of a 301 redirect from non-www to www where the defaultsitename is domain.com and where you are linking to a folder, and where you forget to add the trailing / to the URL in the link.

If you forget the trailing / then your link to www.domain.com/folder will first be redirected to domain.com/folder/ {without www!} before arriving at the required www.domain.com/folder/ page.

The intermediate step, at domain.com/folder/ will kill your listings. Luckily, this effect is very easy to see if you use Xenu LinkSleuth to check your site: it shows up as reporting double the number of pages (when you generate the sitemap) that you actually have, with half of the pages having a title of "301 Moved".

Andkon

1:21 am on Nov 5, 2005 (gmt 0)

10+ Year Member



Okay, with the code I put above, my subdomains redirect to directories. For example, sd.mysite.com now redirects to www.mysite.com/sd/ Is there anyway to avoid that?

Rollo

3:37 pm on Nov 5, 2005 (gmt 0)

10+ Year Member



This is not really a problem. I think it's fine to just ignore it, but a redirect would work perfectly fine as well.

jdMorgan

4:03 pm on Nov 5, 2005 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



>> Okay, with the code I put above, my subdomains redirect to directories. For example, sd.mysite.com now redirects to www.mysite.com/sd/ Is there anyway to avoid that?

> This is not really a problem. I think it's fine to just ignore it, but a redirect would work perfectly fine as well.

It is a problem, because it will remove your existing search engine listings for subdomain URLs and replace them with subdirectory URLs.

You need to find the code that rewrites your subdomains to subdirectories, and place the non-www domain redirect code ahead of that rewrite code in the same file.

Jim

Kufu

4:57 pm on Nov 5, 2005 (gmt 0)

10+ Year Member



Rollo,

Regent would definitely want to implement that 301 redirect. Even though Google and the other search engines are supposed to realize (and they usually do) that the domain with the 'www' and without the 'www' is the same, the spiders sometimes get confused and list them as entirely different domains (which they technically are). This causes a duplicate content issue, at worst; and splits up your PR, at the least.

Regent's PR wonít go from a 6 to a 7 if the redirect is done, but it may increase it by a fraction.

tedster

8:50 pm on Nov 5, 2005 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



On IIS, we're using the following approach with a client. It works very solidly (but you need to be server admin or your host needs to be willing to do it for you.) AFAIK, this approach immediately performs the 301 on any url request without risking the trailing slash issues that g1smd mentioned above. It should also avoid any tangles with subdomains.

301 Redirect at the Domain Level on IIS

1. Assuming that www.example.com is already set up as a "website",
go into Internet Services Manager and also set up example.com
(no www) as a website.

2. In Internet Services Manager select the new example.com website
and go into Properties.

3. Under the Home Directory tab, change the option button
"When connecting to this resource the content should come from"
to "A redirection to a URL".

4. Enter the URL as http://www.example.com

5. IMPORTANT:
Check the box "A permanent redirection for this resource." Otherwise
you get a 302 redirect instead of a 301.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month