ivanvias - 5:24 am on Aug 25, 2010 (gmt 0)
I have a site as example.com and I am using a component that maps and "rewrites" some pages to subdomain.
For example subdomain.example.com is also example.com/subdomain only if the page exists.
If not it returns a 404 error.
The issue with this is that since i am using virtual domains i am getting duplicate pages indexed from my base domain on my subdomain
example.com/features and subdomain.example.com/features are both getting indexed causing duplicates.
I since have modified my robots.txt and disallowed them for now.
So what i am trying to achieve is to have only my article pages index sych as for example.com/features and example.com/signup . To fix this i thinki should rewrite anything i type after /
For example if i was on a subdomain subdomain.example.com/features to redirect to
example.com/features so only the latter gets indexed.
These would only be my article pages that i have on my base domain.
if i were to type example.com/subdomain for it to rewrite to subdomain.example.com also