Nginx配置文件404设置
#ERROR-PAGE-START 错误页配置,可以注释、删除或修改 error_page 403 =200 /404.php; error_page 404 =200 /404.php; error_page 502 /502.html; #ERROR-PAGE-END
Apache伪静态设置
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ 404.php/$1 [QSA,PT,L] </IfModule>