rewrite配置 - ghomnet/zfaka GitHub Wiki

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