簡體   English   中英

htaccess引發錯誤標志分隔符錯誤

[英]Htaccess raised bad flag delimiters error

我收到一個錯誤RewriteRule:錯誤的標志分隔符 當我訪問頁面時,瀏覽器顯示500錯誤。 誰能指出我正確的方向。 我在MAC OS 10.9.2中使用xampp

以下是我的htacess代碼。 它可以在我的托管服務器(Linux)中完美運行,但不能在我的本地主機中運行

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

我通過刪除最后一行中的“ 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