今天使用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]
今天使用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]