1.nginx下rewrite规则
location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?$1 last; } } 2.apache下rewrite规则 #.htaccess, 当然也可以写在httpd.conf RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.php
1.nginx下rewrite规则
location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?$1 last; } } 2.apache下rewrite规则 #.htaccess, 当然也可以写在httpd.conf RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.php
如果文章对你有帮助,欢迎点击上方按钮打赏作者
未经允许不得转载:军哥驿站 » Zkaka系统rewrite配置