This topic created in 5972 days ago, the information mentioned may be changed or developed.
我的wordpress是装在二级目录下,类似 /www/blog/
网上搜索了下伪静态的写法,都是针对一级目录的。当我自定义超链接样式时则无效。
请问这种情况如何修改?
2 replies • 1970-01-01 08:00:00 +08:00
 |
|
这样不行么?
location /blog { if (-f $request_filename/index.php) { rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite ^/blog/(.*)$ /blog/index.php; } }
|
 |
|
谢谢,已解决。这个按照什么规则写的?
|