I’d like to rewrite
www.site.com/a/b/?param1=one¶m2=two
in
www.site.com/c/d/e/?param1=one¶m2=two.
Where http://www.site.com/a/b does not exists. I tried with
RewriteEngine on
Options +FollowSymLinks
RewriteRule ^a/b/(.*)$ www.site.com/c/d/e/$1 [QSA,L]
What’s wrong with it?
Try this one:
There is no need for adding the incompleate domain. If you want that the users visit a second domain you have to add the
Roption and the protocol. For a redirect to a second domain try this: