Guys Please read carefully! 2 subdomains abc.domain.com and ab.abc.domain.com are running on my host, which are basically creating duplicate pages of domain.com. According to my host, I'm not able to ab.abc.domain.com but still everyone can access these subdomains. Google is indexing all these URL's and hence showing duplicate pages. Can anyone guide me, how to redirect both subdomains to main domain? Thanks in advance!
Why would you not just delete one of them and only use one? If you want to re-direct try a meta-refresh: http://www.web-source.net/html_redirect.htm
If you have no control over the sub domains, use the canonical meta tag to point to the original source. Google will see this and sort things out themselves.
are you good in using htaccess??? does those 2 sub domains are redirecting properly??? why not point the redirect to the main page while fixing the duplicate issues on the 2 subdomain.
tjsocr22, thanks for your reply! I tied to delete them but unable to remove. In-fact hosting people are not able to remove those.
It could be a wise suggestion but don't you think so canonical meta tag will slow down the page loading time?
I've already tried lots of htaccess code but unable to redirect them. Can you suggest any redirect code?