本文由 资源共享网 – 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>