开发者

What is wrong with this .htaccess file?

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/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜