Google Answers Logo
View Question
 
Q: Get my website (racesco.com) to automatically resolve to www.racesco.com ( No Answer,   3 Comments )
Question  
Subject: Get my website (racesco.com) to automatically resolve to www.racesco.com
Category: Computers > Internet
Asked by: scottso-ga
List Price: $5.00
Posted: 20 Apr 2004 19:36 PDT
Expires: 20 May 2004 19:36 PDT
Question ID: 333443
Hello,

I have a personal website, and you can reach it by going to
racesco.com or www.racesco.com.  I would like to have ALL visitors
land on www.racesco.com for some optimization purposes.  How do I
configure my site to kick those who enter racesco.com over to
www.racesco.com?  Thank you!

Clarification of Question by scottso-ga on 20 Apr 2004 21:43 PDT
I understand you can do the following, but I cannot get it to work on my site.

You can use Mod_Rewrite to force people to use the WWW version by
adding this code to your .htaccess file:

Code / Sample:

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.seochat\.com
RewriteRule ^.*$ http://www.seochat.com%{REQUEST_URI}
[R=301,L]

Any thoughts??
Answer  
There is no answer at this time.

Comments  
Subject: Re: Get my website (racesco.com) to automatically resolve to www.racesco.com
From: topbanana-ga on 24 Apr 2004 11:29 PDT
 
It's not something you can configure on the server side. Speak to your
host and have them update their name servers with an additional entry
for racesco.com to point to the ip of the machine serving that domain.
Subject: Re: Get my website (racesco.com) to automatically resolve to www.racesco.com
From: topbanana-ga on 24 Apr 2004 11:37 PDT
 
My apologies, it can be done on the server side. However depending on
what software you're running to host the site (apache, iis, etc..) the
process will be different. The answer above applies regardless of what
you're using.
Subject: Re: Get my website (racesco.com) to automatically resolve to www.racesco.com
From: topbanana-ga on 24 Apr 2004 11:44 PDT
 
I'm not really with it today!... the command rewriteengine obviously
applies to apache, so we know what you're using. I believe the
'redirect' command is what you should be using instead of that -
probably why you've had no luck with it. Just add 'Redirect permanent
/index.html www.racesco.com/index.html' in the httpd.conf file for
racesco.com

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy