phpstudy切换PHP(nts)模式出现的No input file specified(已解决)

今天使用phpstudy切换到高版本时,报No input file specified

看高版本都带有nts,就百度查找一番,结果还真是nts的问题,遂做个笔记

解决方法:

Thinkphp的public文件夹下的 .htaccess,将

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

修改为在下面的内容,即可使用phpstudy的nts模式

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

 

你可能感兴趣的:(PHP,phpstudy)