apache PHP 隐藏 index.php 报错 No input file specified. 解决办法

在.htaccess中修改(如果是框架,则在public下的.htaccess)

<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

OJBK

猜你喜欢

转载自www.cnblogs.com/cxfs/p/13188794.html