laura_c Posted December 25, 2008 Posted December 25, 2008 Hi All, Looking for a little help, please. I thought I could solve this on my own but everything I have tried has created problems and had to be reversed out. My site is www.lembrassa.com, but to protect the name and in case of mistypes I also have registered a number of domain names which are variations e.g. www.lembrassa.net, www.lembrassa.org, www.lembrasa.com, etc.. I have had all these variations parked on to the main domain name. I noticed recently that Google has started listing some of these variations in its search results. I have no idea why, since I don't mention these alternative domain names anywhere on the site. So my first question is how/why is Google listing these? And how do I prevent that happening? In the meantime, and to avoid confusion for the customer if they chose one of the alternative domain names - say www.lembrasa.com - I wanted them to still see the main domain name in the address bar. I thought I could do this easily using a "rewritecond" and "rewriterule" in the .htaccess file, but although I have tried several variations I can't get this right. Can anyone help with how I can achieve this, please? Any help would be gratefully appreciated. Laura Quote
TCH-Dick Posted December 25, 2008 Posted December 25, 2008 Just add these two lines >RewriteCond %{HTTP_HOST} !^www\.lembrassa\.com$ [NC] RewriteRule ^(.*)$ http://www.lembrassa.com/$1 [R=301,L] Quote
laura_c Posted December 25, 2008 Author Posted December 25, 2008 Just add these two lines >RewriteCond %{HTTP_HOST} !^www\.lembrassa\.com$ [NC] RewriteRule ^(.*)$ http://www.lembrassa.com/$1 [R=301,L] Excellent, Dick. Many thanks - that has fixed so that people always see the the main domain name in the address bar now. Does anyone have any suggestions as to how/why Google is picking up the alternative (parked) domain names and how I stop that happening? Thanks, Laura Quote
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.