wordpress在不同webserver下的重写规则和配置
04-7
apache下
- #.htaccess
- RewriteEngine On
- RewriteBase /
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /index.php [L]
- #httpd.conf
- Options ExecCGI FollowSymLinks
- AllowOverride All
- Order allow,deny
- allow from all
nginx下
- #nginx.conf
- location / {
- if (!-f $request_filename){
- rewrite (.*) /index.php;
- }
- }

