本文由 資源共享網 – ziyuan 發布,轉載請注明出處,如有問題請聯系我們![免費]Apache無法在PHPStudy中成功開啟ThinkPHP偽靜態功能
收藏在PHPStudy中的ThinkPHP偽靜態如果設置成下面這樣不會成功!
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>改為下面的這樣就可以了
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>
