apache Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.)$ index.php [L,E=PATH_INFO:$1] nginx location / { if (!-e $request_filename) { rewrite ^/index.php(.)$ /index.php?s=$1 last; rewrite ^(.*)$ /index.php?s=$1 last; break; } }
apache和Nginx隐藏index.php的配置
最新推荐文章于 2021-03-19 09:15:29 发布
