【发布时间】:2015-05-27 02:34:41
【问题描述】:
我正在尝试将我的 htaccess 规则转换为 nginx conf,但我不能。
Options -Indexes +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(ajax/|data/|js/|styles/|favicon\.ico|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php?p=notfound [NC,L]
</IfModule>
请给我一些有关此代码的帮助。谢谢!
【问题讨论】:
标签: apache .htaccess nginx rewrite