homepage Welcome to WebmasterWorld Guest from 54.145.209.80
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
PageRank difference between 'www' and no 'www'
Regent

10+ Year Member



 
Msg#: 31758 posted 10:41 pm on Oct 27, 2005 (gmt 0)

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

10+ Year Member



 
Msg#: 31758 posted 1:35 am on Oct 28, 2005 (gmt 0)

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

10+ Year Member



 
Msg#: 31758 posted 6:29 pm on Nov 3, 2005 (gmt 0)

"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

5+ Year Member



 
Msg#: 31758 posted 6:39 pm on Nov 3, 2005 (gmt 0)

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

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 31758 posted 7:50 pm on Nov 3, 2005 (gmt 0)

...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

10+ Year Member



 
Msg#: 31758 posted 8:05 pm on Nov 3, 2005 (gmt 0)

Anyone know how to do it on a Windows IIS?

Andkon

10+ Year Member



 
Msg#: 31758 posted 10:52 pm on Nov 3, 2005 (gmt 0)

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

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 31758 posted 12:16 am on Nov 4, 2005 (gmt 0)


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

greenfrog

10+ Year Member



 
Msg#: 31758 posted 12:32 am on Nov 4, 2005 (gmt 0)

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

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 31758 posted 1:04 am on Nov 4, 2005 (gmt 0)

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

10+ Year Member



 
Msg#: 31758 posted 1:21 am on Nov 5, 2005 (gmt 0)

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

10+ Year Member



 
Msg#: 31758 posted 3:37 pm on Nov 5, 2005 (gmt 0)

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

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



 
Msg#: 31758 posted 4:03 pm on Nov 5, 2005 (gmt 0)

>> 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

5+ Year Member



 
Msg#: 31758 posted 4:57 pm on Nov 5, 2005 (gmt 0)

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

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



 
Msg#: 31758 posted 8:50 pm on Nov 5, 2005 (gmt 0)

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.


Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved