AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] WP在二级目录的伪静态 |
|
---|---|
amhbest |
amhbest 发表于 2014-01-08 17:14:20
RewriteEngine On
RewriteBase /blog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] 用工具转 #ignored: "-" thing used or unknown variable in regex/rew if (!-f $request_filename){ set $rule_1 1$rule_1; } if (!-d $request_filename){ set $rule_1 2$rule_1; } if ($rule_1 = "21"){ rewrite /. /blog/index.php last; } WP能工作,但是WWW.XXX.COM首页跑到blog去了,求大神帮忙,谢谢!
点赞,加油! (1分)
2014-01-08 17:14:20 1
|
tanyuxiang |
location /wordpress {
try_files $uri $uri/ /wordpress/index.php?$args; }
回复
2014-01-08 19:08:45 2
|
ali |
楼上是大神
回复
2014-01-08 20:00:10 3
|