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