前后对比
LAMP
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
LNMP
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php;
}
}
评论 (0)