I'm trying to add a rewrite rule for an old domain test.fr
.
I have placed my rule in our virtualhost in the httpd.conf
file with rewrite engine on, I'm not sure why .htaccess
wasn't used.
rewrite rules for test.fr
RewriteCond %{http_host} ^test.fr [NC,OR]
RewriteCond %{http_host} ^www.test.fr [NC]
RewriteRule $ http://www.test.com/france$1 [L,R=301,NC]
The issue I'm having is subsites of the domain are not transferred with the rewrite.
For example: If I go to http://www.test.fr/abc/123
it will rewrite to http://www.test.com/france/
but /abc/123
after france
is left off.
Any help would be appreciated