I’ve moved a site over to a new system where we used to use a subdomain (sub.domain.com) - but now will be using the main domain instead AND the link structure will be very different. (I.E. it used to be http://sub.domain.com/blah/hegdt.html and now will be using a dynamic program…)
There are FAR too many pages for me to try to redirect each possibility, and we’re changing a lot of the way it was structured anyway, so really, that’s just not feasible. So, I basically want to redirect anyone who goes to any page under sub.domain.com to go to the MAIN page at www.domain.com - without carrying over any of the rest of the URL…
using the following in the subdomain’s root htaccess:
Redirect / http://www.domain.com/
produces a redirect, but it tries to keep the whole URL (ex. http://sub.domain.com/blah/hegdt.html redirects to http://www.domain.com/blah/hegdt.html)
How can I tell it to just go to www.domain.com ?
Many thanks in advance… htaccess is not my strong point.