- GoTop2010-04-29论坛元老1057
装的是LNMP0.4
WP后台的管理链接不对
比如说编辑帖子的链接,显示为http://www.xxxxxx.com/edit.php
其实际的url应该是http://www.xxxxxx.com/wp-admin/edit.php
是不是url rewrite有问题呢?
请大家帮忙看一下.
这是我nginx.conf文件中的内容- server
- {
- listen 80;
- server_name xxxxxx.com;
- index index.html index.htm index.php default.html default.htm de
- fault.php;
- root /home/wwwroot;
- - include wordpress.conf;
- location ~ .*\.(php|php5)?$
- {
- fastcgi_pass unix:/tmp/php-cgi.sock;
- fastcgi_index index.php;
- include fcgi.conf;
- }
- - location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 30d;
- }
- - location ~ .*\.(js|css)?$
- {
- expires 12h;
- }
- - access_log off;
- }复制代码这是wordpress.conf中的内容- location / {
- if (-f $request_filename/index.html){
- rewrite (.*) $1/index.html break;
- }
- if (-f $request_filename/index.php){
- rewrite (.*) $1/index.php;
- }
- if (!-f $request_filename){
- rewrite (.*) /index.php;
- }
- }复制代码
[ 本帖最后由 GoTop 于 2010-4-29 19:29 编辑 ]