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]
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!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
Last edited by jdk; 09-07-2005 at 10:13 PM.
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]
Thank you
Last edited by jdk; 09-07-2005 at 11:23 PM.
Wow that's helpful!
Courteous and Respectful DNForum Member!
Text Link Ads WhyPark.com - Stop Parking Your Domains - Society's Problems - PM me to Post your Opinions
no problem guysglad to help!
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.
LeafyProductions.com - Imagine. Create. Inspire.
Hide Under Here - HUH.in - Explore the Internet without restrictions!
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.Originally Posted by mmkrulz
If anyone has any comments please post as I am interested if this would help or hurt your PR or SEO.
301 Redirects are acceptable by the search engines , so i dont think any problem is there to use this code.
![]()
LocaFY.in - The smartest way to find local information in India
Bookmarks