Welcome to WebmasterWorld Guest from 50.17.16.177

Message Too Old, No Replies

PageRank difference between 'www' and no 'www'

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

Junior Member

10+ Year Member

joined:June 13, 2003
posts:42
votes: 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.

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

New User

10+ Year Member

joined:Mar 4, 2003
posts:20
votes: 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.
6:29 pm on Nov 3, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 17, 2003
posts:54
votes: 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?

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

Junior Member

10+ Year Member

joined:June 23, 2005
posts:145
votes: 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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 9, 2005
posts:1509
votes: 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

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

Preferred Member

10+ Year Member

joined:Apr 1, 2003
posts:438
votes: 0


Anyone know how to do it on a Windows IIS?
10:52 pm on Nov 3, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 17, 2003
posts:54
votes: 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?

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

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0



They get combined after a few months, and may go up by a small amount.
12:32 am on Nov 4, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:June 7, 2003
posts:114
votes: 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]

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

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 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".

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

Junior Member

10+ Year Member

joined:Nov 17, 2003
posts:54
votes: 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?
3:37 pm on Nov 5, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:July 5, 2004
posts:470
votes: 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.
4:03 pm on Nov 5, 2005 (gmt 0)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 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

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

Preferred Member

10+ Year Member

joined:June 6, 2005
posts:524
votes: 1


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.

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

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 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.