My two domains point to the same host, say example.com and example2.com.
I already have a redirect:
Rewriteum ^ ([A-Za-z0-9 -] +) / $ page.php? Q = $ 1 [L]
To capture things like example1.com/hello-world/ => example.com/page.php?q=hello-world
Now I need 3 specific conditions to complete:
1) Example1.com/special/ => example2.com/special/ [only for "special"]
2) Example2.com/ = example2.com/special/
3) example2.com/anything -not-special / => example1.com/anything-not-special/
let me do this , Except that I want to see what's in the right-hand column to display in the URL. Instead, I'm getting: example2.com/special/ => example1.com/page.php?q=special
which is not ideal for me.
Any help appreciated, thanks!
See if this is what you want:
Rewighting On Rewriting At% {REQUEST_URI}! ^ / Page \ .php rewrite code% {HTTP_HOST}% {REQUEST_URI} = example 1 / special / [or] rewrite% {HTTP_HOST}% {REQUEST_URI} = example 2.com/RORTUR URL ^. * $ Http://example2.com/special/ [R = 301, L] Rewrite% {REQUEST_URI}! ^ / Page \ .php rewrite% {HTTP_HOST} = example2.com rewrite% {REQUEST_URI}! = / Special / RewriteRule ^. * $ Http: //example1.com% {REQUEST_URI} [R = 301, L] Riveritium ^ ([A-Za-z0-9 -] +) / $ page.php? Q = $ 1
Comments
Post a Comment