Rewrite request to a sub directory
问题 I have a web application in a directory suppose xyz . I am trying to redirect all requests to a sub directory www . My current .htaccess code is: RewriteEngine On RewriteRule (.*) /www/$1 [L] But, when I visit http://example.com/xyz/some_url the request is redirected to http://example.com/www/some_url rather http://example.com/xyz/www/some_url which I want. Update: Sorry, I forgot to mention the directory xyz as in my case is likely to renamed. So, this directory doesn't need to be hard coded