原帖由 gdtv 于 2009-11-1 11:22 发表
我一直用这个rewrite规则,多简单:
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
}






原帖由 遍地阳光 于 2009-11-1 15:18 发表
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
[emerg]: open() "/web/logs/access.log" failed (2: No such file or directory)
configuration file /usr/local/nginx/conf/nginx.conf te ...
代沟有很多牛人的。
原帖由 gdtv 于 2009-11-1 11:22 发表
我一直用这个rewrite规则,多简单:
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
}

原帖由 flywyh 于 2009-11-1 22:08 发表
正解,楼主的是网上流传最多的,但有问题。wordpress的rewrite原理超简单,就是找不到的文件夹或文件转给index.php处理。



| 欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) | Powered by Discuz! X3.4 |