WordPress.org

Support

Support » Multisite » Links to sites don't work

Links to sites don't work

  • Hi,

    I have a problem with my wp multisite installation. It works fine but I have problems with the links in the admin bar. For example, I have 3 sites:

    test.com/
    test.com/site1
    test.com/site2

    But in the admin bar, every link goes to test.com :(. Also the links in “sites” screen and the administration links (always test.com/wp-admin)

    If I write the url, every thing works fine but the links in the admin side don’t work.

    I’m using wp 3.5.1 and nginx.

    I’d really appreciate your help guys!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Are you using W3TC?

    No, I’m not using W3TC. Actually I’m not using any cache plugin yet. Also I tried deactivating all my plugins but it still doesn’t work. Thanks for your answer!

    What’s your nginx conf?

    I took my config from here:
    http://rtcamp.com/tutorials/nginx-wordpress-multisite-subdirectories/

    server {
            listen test.com:80;
            server_name test.com;
            root /var/www/test/;
            index index.html index.php index.htm;
    
            if (!-e $request_filename) {
                    rewrite /wp-admin$ $scheme://$host$uri/ permanent;
                    rewrite ^(/[^/]+)?(/wp-.*) $2 last;
                    rewrite ^(/[^/]+)?(/.*\.php) $2 last;
            }
    
            location / {
                    try_files $uri $uri/ /index.php?$args ;
            }
    
            location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
                    access_log off; log_not_found off; expires max;
            }
    
            location = /robots.txt { access_log off; log_not_found off; }
            location ~ /\. { deny  all; access_log off; log_not_found off; }
    
    		 location ~ \.php$ {
                    fastcgi_pass   127.0.0.1:9000;
                    fastcgi_index  index.php;
                    fastcgi_split_path_info ^(.+\.php)(/.+)$;
                    fastcgi_param  SCRIPT_FILENAME  /var/www/test$fastcgi_script_name;
                    fastcgi_param HTTP_HOST test.com;
                    fastcgi_read_timeout 120;
                    include fastcgi_params;
                    fastcgi_intercept_errors on;
            }
    
            location ~ /\.ht
            {
               deny all;
            }
    }

    Thanks!

    @mconte

    I am writer of http://rtcamp.com/tutorials/nginx-wordpress-multisite-subdirectories/

    It looks like you have altered my location ~ \.php$ {.. } block.

    Please use:

    location ~ \.php$ {
    		try_files $uri /index.php;
    		include fastcgi_params;
    		fastcgi_pass   127.0.0.1:9000;
    	}

    And let me know if it fixes your issue.

    With my config, you don’t need fastcgi_split_path_info as try_files make sure if requested uri physically exist.

    I changed the location ~ \.php$ {.. } block but I’m still having the same problem..The urls exists. If I write them I can access the sites…More details about my configuration:
    -I’m using php-fpm
    -I’m using APC

    Thanks for your help!

    Can you share link to your site here?

    Sorry to say I did not understand your line:

    The urls exists. If I write them I can access the sites

    So I will better have a look at your site myself…

    Sure… I have 3 sites:
    http://network.arqa.com/
    http://network.arqa.com/empresas/
    http://network.arqa.com/users/

    I can access each site and I can manage them. My problem is with the links inside the admin. If you need admin access, please, send me an email to [email moderated – if you need that level of support, please consider to post a job at http://jobs.wordpress.net/ ]

    Thanks for your time!

    Sorry. I was under impression you are having link issue on front-end.

    Please send me admin access at [email address moderated – this forum does not provide support via email] for all 3 sites.

    A quick question – r u getting issue on all 3 sites or only last 2 sites in above list?

    esmi

    @esmi

    Forum Moderator

    @rahul286: Please do not solicit site logins from forums users.

    @mconte: If necessary you should consider hiring someone for one-to-one support. For your own safety, do NOT pass site login information to other forum members.

    oh, sorry for that.

    @rahul286
    here is a print screen with the issue: http://www.broobe.com/Capture.PNG

    You can see the link at the bottom of the image. It should be network.arqa.com/empresas/wp-admin but it’s network.arqa.com/wp-admin.

    Thanks!

    @esmi

    User offered admin access himself.

    Ref:

    If you need admin access, please, send me an email to [email moderated]

    Michael

    @alchymyth

    Forum Moderator

    @rahul286

    @esmi is right –
    generally, please do not react on invitations to email somebody directly.
    this kind of support is not offered by this forum, and is better left to the job forum.

    @alchymyth & @esmi

    We already have a dedicated & free support forum to solve issues related to wordpress-nginx config here – http://rtcamp.com/support/forum/wordpress-nginx/

    I thought it will be bad thing to ask a user to use our forum when he is already on forum!

    What should I do in future? Should I ask them to use other support forums? Or simply ignore support request where I am 1000% sure of giving solution!

    Please clarify.

    Michael

    @alchymyth

    Forum Moderator

    ideally, if you can, answer the problem within this forum;

    however, I would not object if you point to your established support forum.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Links to sites don't work’ is closed to new replies.
Skip to toolbar