thqh Posted August 2, 2004 Share Posted August 2, 2004 Is there an option to forward **** to www.**** because I found out that Google lists these 2 domains separately, and I only want www.**** to appear in the Google index. I tried with another domain of mine and since I forwarded otherdomain.com to www.otherdomain.com, Google lists it right. I tried to forward to a subdomain, but www is not allowed to be a subdomain. Quote Link to comment Share on other sites More sharing options...
borfast Posted August 2, 2004 Share Posted August 2, 2004 (edited) I know this has to do with DNS. You need to change some records about your domain but I'm not sure how you can do that but I'll move this post to a more appropriate forum so there's more chance someone sees it and answers. Edit: I just thought that you may probably use .htaccess to control what you want but I'm not sure how you'd do it, since htaccess is not my area. Edited August 2, 2004 by TCH-Raul Quote Link to comment Share on other sites More sharing options...
thqh Posted August 2, 2004 Author Share Posted August 2, 2004 Can someone please help because I really don't knwo how to do that. I saw when you type google.com then it automatically shows www.google.com Quote Link to comment Share on other sites More sharing options...
TCH-Rick Posted August 4, 2004 Share Posted August 4, 2004 I answered this in your Help Desk ticket but want to post it here for future use as well. I ran a Google search for redirect domain.com www.domain.com and there were several options. The best I saw was adding the following code to your .htaccess file which uses a Rewrite. Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^yourdomain\.com RewriteRule ^(.*)$ http://www.******/$1'>http://www.******/$1 [R=permanent,L] As always, make backups of your .htaccess file before modifying it so that you can go back to a working copy should there be problems. If you try using a Redirect / http://www.******/ you will get a loop and the site will not work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.