I have a url like http://www.example.com/search/test+word+abc Is it possible to rewrite that url to anothe url http://testword.example.com ? I failed because apache is not properly redirecting like this RewriteRule ^/search/test\+word\+abct http://testword.example.com [R=301,L] Is there any other solution?