Forum Moderators: phranque
I've managed to do this;
RedirectMatch Permanent ^/(.*)$ http:// www. newdomain.com/
But it simply redirects to the home page.
I want to 301 redirect an old domain to a new one, including redirecting the relative pages, that will be staying in the same place.
For example
http:// www. oldomain.com/thisdirectory/thispage.html
should go to
http:// www. newdomain.com/thisdirectory/thispage.html
(urls intentionally broken for forum TOS)
Many thanks for any help.
For those interested in the details, I am actually unparking a domain from the 'real' domain - which Yahoo insists on indexing sometimes - and putting in the redirects to the 'real' domain, to prevent any potential duplication issues. My guess is that some whois service probably links to the parked domain and bots are coming in that way.