In my root directory are two subfolders production and development. I would like to send all incoming traffic to the production folder, thats where my site is.
In the root i have this .htaccess:
RewriteEngine on
RewriteRule ^$ product开发者_JS百科ion/ [L]
RewriteRule (.*) production/$1 [L]
When i browse to the domain name I keep getting an internal server error.
What am i doing wrong? Thanks!
Try this one
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ /poduction/
精彩评论