Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Sedo.com

Wanted: Service Programming Help

Status
Not open for further replies.

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
I am looking to make my site go to www.domain.com each time the user types in domain.com For an example check out Google, you can enter www.google.com or google.com into your address bar and it opens up www.google.com
 

adill420

DNF Regular
Legacy Exclusive Member
Joined
Dec 14, 2002
Messages
488
Reaction score
0
hello,

put this in .htaccess file in the main directory of your webiste

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

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
Thank you
 

fab

Level 9
Legacy Exclusive Member
Joined
Dec 11, 2004
Messages
3,554
Reaction score
1
Wow that's helpful!
 

adill420

DNF Regular
Legacy Exclusive Member
Joined
Dec 14, 2002
Messages
488
Reaction score
0
no problem guys :) glad to help!
 

mmkrulz

Level 8
Legacy Exclusive Member
Joined
Oct 23, 2004
Messages
1,062
Reaction score
0
hmmm... just out of curiosity, is this for SEO reasons? I am just wondering, because if so, i would love to do this to all my sites as well.
 

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
mmkrulz said:
hmmm... just out of curiosity, is this for SEO reasons? I am just wondering, because if so, i would love to do this to all my sites as well.

Yes, I am playing around with the fact a site of mine has PR 6 with the www and PR 4 w/o the www, so if I do this code all links picked up should have www in them making my PR higher with the www. This is only a test and I do not know how it will turn out.

If anyone has any comments please post as I am interested if this would help or hurt your PR or SEO.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom