phpstudy php5.4以上版本伪静态设置 thinkphp

Posted 码农编程进阶笔记

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了phpstudy php5.4以上版本伪静态设置 thinkphp相关的知识,希望对你有一定的参考价值。

http://www.thinkphp.cn/topic/35958.html

<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
 RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

 

默认的

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

规则在apache fastcgi模式下会导致No input file specified.

修改成

RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

就OK,地址正常重写。











以上是关于phpstudy php5.4以上版本伪静态设置 thinkphp的主要内容,如果未能解决你的问题,请参考以下文章