apache-PHP-隐藏-indexphp-报错-No-input-file-specified-解决办法

6次阅读

共计 236 个字符,预计需要花费 1 分钟才能阅读完成。

在.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

正文完
 0