• Resolved SillySnail

    (@sillysnail)


    I’ve used wp for years since v2.1, and it works quite well. Recently I tried to install wp 3.0.1 on nginx 0.7 and imported previous blogs. All work well except the links in dashboard: function module links in dashboard should be like “www.domainname.com/wp-admin/xxx.php”, but in my dashboard all links are displayed “www.domainname.com/xxx.php” with the “/wp-admin” missing.. If I manually insert “/wp-admin” to link address, all other links will display correctly until I leave the session.

    Could you tell me why and how to fix the problem? Thanks very much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • CHeck .htaccess to see if there is a redirect in force.

    Thread Starter SillySnail

    (@sillysnail)

    Thanks but there is no .htaccess file in a nginx platform.
    In the nginx.conf the server part includes:

    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;
    }
    }

    location ~ .*\.(php|php5)?$
    {
    fastcgi_pass unix:/tmp/php-cgi.sock;
    fastcgi_index index.php;
    include fcgi.conf;
    }

    Sorry. Missed the nginx reference. If you have permalinks enabled I think you need this:

    if (!-e $request_filename) {
      rewrite ^.*$ /index.php last;
    }

    or

    if (!-e $request_filename) {
    rewrite . /index.php last;
    }

    Don’t deal with nginx often and this is all I have in my own documentation. Otherwise if you do a Google search against this site with nginx.conf you will get a bunch of results. Just honestly do not know enough on nginx to point you to a correct answer but you might be able to recognize it.

    Thread Starter SillySnail

    (@sillysnail)

    Thans very much. According to your suggestion, I found in this page the following lines added to server part and the problem seems solved now.

    if (!-e $request_filename) {
       rewrite ^.+?(/wp-.*) $1 last;
       rewrite ^.+?(/.*\.php)$ $1 last;
       rewrite ^ /index.php last;
      }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘miss "wp-admin" in dashboard links’ is closed to new replies.