#1 xuexiphp
在本机开发的Windows下,.htaccess 文件为:BEGIN WinBlog
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
END WinBlog
为域名下的目录访问,本机访问方式为:test.test.com/ets/
test.test.com/ets/index.php?c=main&a=index spURL之后变为 test.test.com/ets/main/index
我nginx定义的规则是:
location / {
rewrite ^/wxets/(.*)$ wxets/index.php?$1 last;
}
这个是无效的,请求高手帮忙解决一下。
2015-06-16 16:06:41