Forum Moderators: open
My main site is hosted at widgetwidget.com but I also bought widget-widget.com and widgetwidget.co.uk and a load of other similar domain names. These secondary names all are hosted on my virtual host's nameservers. These secondary names all redirect instantly to the main domain. This is done through the PLESK server control panel rather than using a meta refresh function.
Google has listed my main domain AND all my secondary names. Does this mean that my main site is penalised as the secondary names look like mirror sites?
Many Thanks
Alex
Yes, the inbound links are likely the reason for your search engine listings. Even pages marked noindex by robots.txt will show up in serps if there is inbound anchor text. The page marked noindex will not be cached and will not show a snippet.
Ted
But I usually recommend reading the following two references first, to get the necessary background to understand the code:
Regular expressions [etext.lib.virginia.edu]
mod_rewrite [httpd.apache.org]
This is what is what was in my .htaccess file before I did anything and these lines must stay:
RewriteEngine on
RewriteRule ^.*L([0-9]+)/?$ /printing-embroidery/Detailed/$1.html [L,T=application/x-http-cgi]
RewriteRule ^$ /cgi-bin/page.cgi?d=1&page=homepage [L,T=application/x-http-cgi]
The first one gives my product catalogue a search engine friendly layout and the second one points my main domain to a dynamic homepage.
There there some kind of conflict occuring? I am happy to sticky my domain to anyone who is interested.
Thanks
Alex
Okay there are no error 500 pages now.
Howvever when I used sam spade to check to check a domain that was being redierct via the 'webforwarding' control panel of my doamin registrar I got:
HTTP/1.1 302 Moved
Content-type: text/html
Is this right? - I thought the rewrite rule was meant to cause a 301 to show or am I mistaken?
Many thanks for all your help so far - this is a superb forum!
In your previous .htaccess file, the R flag wasn't used to set the status code, so the redirects returned a 302. Also keep in mind that the order in which you put the rules matters in this case.