2009
04-7
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;
- }
- }
五月 15th, 2009 at 09:59:38
博主,你好,请问如果要过滤掉css和js文件,也就是说,css和js文件不进行rewrite到index.php,请问要怎么写nginx的rewrite?
麻烦把rewrite规则发送到我的邮箱,谢谢!
九月 14th, 2009 at 14:05:21
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
老大,这个如何转成nginx的规则。先谢谢了。
九月 14th, 2009 at 14:09:37
这个得配置,不是规则