RewriteRule:坏标记分隔符

时间:2016-12-15 19:17:05

标签: php apache .htaccess

RewriteBase /
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

当我尝试使用上面的.htaccess运行localhost时,我收到HTTP错误500,而localhost页面没有加载。

Apache错误日志说:

[Thu Dec 15 13:17:18 2016] [alert] [client ::1] /Applications/MAMP/htdocs/shopping cart/cart/public/.htaccess: RewriteRule: bad flag delimiters

0 个答案:

没有答案