Apache规则: ``` <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule upload/(.*).(php)$ - [F] RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg|\.bmp|\.woff|\.ttf|\.svg|\.eot|\.otf|\.woff2)$ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?$1 [QSA,PT,L] </IfModule> ``` ngnix伪静态规则如下: ``` location /{ if (!-e $request\_filename) {   rewrite  ^(.\*)$  /index.php?$1  last;   break; } } ```