wp是直接搬过来的,前台正常的很,就是后台:

比方说点"文章",链接到的地址是:http://baidu.com/edit.php 打不开 � -#

地址中间还少了个 /wp-admin/ http://baidu.com/wp-admin/edit.php

请教下,这个问题该怎么解决,谢谢谢谢、用的是默认的wordpress rewrite、

、、

Google找到了、修改wordpress.conf、汗,我昨晚找了好一会怎么就没找到,�~ 修改为:

location /
{
try_files $uri $uri/ /index.php?q=$uri&$args;
}

然后重启nginx即可!

不过后来我又发现了个问题,就是插件,有个备份的插件,用的是原来网站上设置的(提示原来网站上的文件目录不可写)、当然,这不是 个问题,我直接删掉了还有什么问题啊,嘿嘿、大不了重新给装上、

PS:wordpress.conf的目录地址为:/usr/local/nginx/conf /wordpress.conf(用vi编辑.)

之后务必重启nginx,我是直接重启LNMP的:/root/lnmp restart


在某论坛上发布的帖子求助,不过后来自己又找到解决方法了、不过帖子后有人给出貌似更好的,同时兼容WP Super Cache、呵呵,我正好在使用这个静态缓存插件,给使用上,一切正常!

location / {
# if the requested file exists, return it immediately
if (-f $request_filename) {
break;
}
set $supercache_file '';
set $supercache_uri $request_uri;
if ($request_method = POST) {
set $supercache_uri '';
}
# Using pretty permalinks, so bypass the cache for any query string
if ($query_string) {
set $supercache_uri '';
}
if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
set $supercache_uri '';
}
# if we haven't bypassed the cache, specify our supercache file
if ($supercache_uri ~ ^(.+)$) {
set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;
}
# only rewrite to the supercache file if it actually exists
if (-f $document_root$supercache_file) {
rewrite ^(.*)$ $supercache_file break;
}
# all other requests go to WordPress
if (!-e $request_filename) {
rewrite . /index.php last;
}
}