alevel https://github.com/nathanli97/cacheautomated 在你的assets/index.php同目录新建一个.htaccess(以Apache2服务器为例),同时确保你的服务器已经打开了rewrite模块支持, .htaccess的内容为(不包括*号) RewriteEngine on RewriteCond %{REQUEST_FILENAME} !index.php RewriteCond %{REQUEST_FILENAME} !test.php RewriteRule ^ index.php [QSA,L]