简体   繁体   English

htaccess引发错误标志分隔符错误

[英]Htaccess raised bad flag delimiters error

I'm getting an error RewriteRule: Bad flag delimiters . 我收到一个错误RewriteRule:错误的标志分隔符 When I access the page, the browser show 500 error. 当我访问页面时,浏览器显示500错误。 Can anyone point me in the right direction please. 谁能指出我正确的方向。 I am using xampp in MAC OS 10.9.2 我在MAC OS 10.9.2中使用xampp

Below is my htacess code. 以下是我的htacess代码。 Its work perfectly in my hosting server which is linux but not in my localhost 它可以在我的托管服务器(Linux)中完美运行,但不能在我的本地主机中运行

RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]s

I solved the problem by removing the 's' in the last line 我通过删除最后一行中的“ s”解决了问题

RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM