Your HostICan Community  


Go Back   Your HostICan Community > SEO (Search Engine Optimization) & Marketing > SEO Advice

SEO Advice Here's where you can share tips and tricks on how to get more visitors to your site.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-06-2008, 01:54 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,776
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default www. vs. non www domains

Does this really make a diffrence? If so, How?
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #2 (permalink)  
Old 05-09-2008, 03:21 PM
Member
 
Join Date: Oct 2007
Location: MN
Posts: 33
Default

Don't search engines treat them as two separate addresses? Therefore hurting your rank by splitting the www hits and the non-www hits.
Reply With Quote
  #3 (permalink)  
Old 05-09-2008, 05:41 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,776
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by tzeench View Post
Don't search engines treat them as two separate addresses? Therefore hurting your rank by splitting the www hits and the non-www hits.
Yes, they do rank them differently, so what you need to do is choose one and stick with it, if you want to see PR increase or link rank increase in the future.

# Forcing www. infront of domain
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^(domain\.com)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #4 (permalink)  
Old 05-09-2008, 09:52 PM
Member
 
Join Date: Oct 2007
Location: MN
Posts: 33
Default

And how would one force a non-www address? Assuming it's done in the .htaccess somehow...
Reply With Quote
  #5 (permalink)  
Old 05-10-2008, 10:39 AM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,776
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by tzeench View Post
And how would one force a non-www address? Assuming it's done in the .htaccess somehow...
You can do:

RewriteEngine on
RewriteRule ^.htaccess$ - [F]

RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

RewriteRule ^(.*).shtml$ index.php?show=all
RewriteRule ^(.*).html$ index.php
RewriteRule ^(.*)/$ index.php
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #6 (permalink)  
Old 05-10-2008, 11:36 AM
Shazam's Avatar
Forum Whip-Cracker
 
Join Date: Sep 2007
Posts: 808
Default

Quote:
Originally Posted by lnxcode View Post
You can do:

RewriteEngine on
RewriteRule ^.htaccess$ - [F]

RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

RewriteRule ^(.*).shtml$ index.php?show=all
RewriteRule ^(.*).html$ index.php
RewriteRule ^(.*)/$ index.php
That last section may be a problem, the one with the index.php stuff. I suggest you eliminate that, as it will cause issues on some sites (it did for me).
__________________
Best,
Shazam
HostICan Community Superhero
Reply With Quote
  #7 (permalink)  
Old 05-10-2008, 01:50 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,776
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by Shazam View Post
That last section may be a problem, the one with the index.php stuff. I suggest you eliminate that, as it will cause issues on some sites (it did for me).
Yea, sorry, it should be:


RewriteEngine on
RewriteRule ^.htaccess$ - [F]

RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #8 (permalink)  
Old 05-10-2008, 01:54 PM
Shazam's Avatar
Forum Whip-Cracker
 
Join Date: Sep 2007
Posts: 808
Default

Now doesn't that feel better?
__________________
Best,
Shazam
HostICan Community Superhero
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 10:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.