Hi there.
Basically , google is listing all subdomain pages of my add-on domain. A common problem i know.
So.......... in the htaccess I added this:
RewriteCond %{HTTP_HOST} ^subdomain.mymainwebsite.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.subdomain.mymainwebsite.com$
RewriteRule ^/?$ "http\://www.mymainwebsite.com/" [R=301,L]
This works for the main subdomain, BUT I can "still access" all of the subdomain pages
So (a) this works: [
subdomain.ADDONMAINWEBSITEIUSE.com ] ----> redirects successfully to----> [
ADDONMAINWEBSITEIUSE.com ]
BUT (b) I can still access e.g. http ://www.subdomain.ADDONMAINWEBSITEIUSE.com/about
Google has listed hundreds of these above subdomain "pages"
So my question is... is there any 'code' that i can add in my htaccess, which redirects "ALL" the subdomain "pages" which have unfortunately been listed in google?
So I need http ://www.
subdomain.ADDONMAINWEBSITEIUSE.com/about (faq/history/contact/links, and hundreds more pages) to goto
http ://www.
ADDONMAINWEBSITEIUSE.com/about (faq/history/contact/links, and hundreds more pages