I have to redirect an old domain name to a new domain name.
Not difficult and the simple redirect works great.
But, I then want to check for a specific old url and change that on the new domain.
old url: myolddomain.com/directory
new url mynewdomain.com/?p=pageid
no matter what I try I can't get the old url to translate to the new url with a new QS. it translates directly to
mynewdomain.com/directory
Basic .htaccess looks like this:
Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !mynewdomain.com$ [NC]
RewriteRule .*$http://www.mynewdomain.com/$1 [R]
Appending this to file doesn't work.
Redirect /directoryhttp://www.mynewdomain.com/?p=pageid
This is getting urgent now - so any help will earn big wet reach from yours truly
Ok - just thought about it differently.
Rather than handling the directory at the old url, I am handling it at the new url.
Far simpler.
gives self a wet reach around