nginx环境下emlog的rewrite规则
在emlog站点的nginx配置文件里加入:
location / { index index.php index.html; if (!-e $request_filename) { rewrite ^/(.+)$ /index.php last; } }
重启nginx即可生效。
在emlog站点的nginx配置文件里加入:
location / { index index.php index.html; if (!-e $request_filename) { rewrite ^/(.+)$ /index.php last; } }
重启nginx即可生效。