共计302个字符,预计需要花费 1分钟才能阅读完成。
Apache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Nginx
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
正文完