I am moving a medium sized WordPress site (a few hundred pages) from one domain to another in order to take advantage of a new TLD variant of the name I already have.
Let's say it's moving the site from mydomain.biz
I want to set up page-by-page redirections from the old site to the new site but don't want to pay for a hosting package just to host a .htaccess file at mydomain.biz with a few hundred lines in it.
My ISP supports website forwarding by domain redirection but I'm not sure how it's implemented (they support 301, 302 and masked)
I set up a 302 domain redirection (for testing purposes) with the ISP from mydomain.biz
to a sub-folder at mydomain.co.uk/redirect
and within the redirect
folder, I have a .htaccess file that has a single line like this:
Redirect 301 /test-page/ http://mydomain.co.uk/test-page/
I also tried this:
Redirect 301 /redirect/test-page/ http://mydomain.co.uk/test-page/
Now, if I open a browser and go to http://mydomain.biz/test-page/
I want to end up at http://mydomain.co.uk/test-page
In both the above .htaccess cases, the URL in the browser changes to mydomain.co.uk/redirect/
but I get the "No Results Found" page back from WordPress which says to me the .htaccess part isn't working or my ISP isn't passing the full URL.
Should I be able to get this to work (preferably with a Rewrite rule) and if so, how? Also, is this good SEO practice?