WordPress.org

Ready to get started?Download WordPress

Forums

Links to sites don't work (20 posts)

  1. mconte
    Member
    Posted 1 year ago #

    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!

  2. Are you using W3TC?

  3. mconte
    Member
    Posted 1 year ago #

    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!

  4. What's your nginx conf?

  5. mconte
    Member
    Posted 1 year ago #

    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!

  6. rahul286
    Member
    Posted 1 year ago #

    @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.

  7. mconte
    Member
    Posted 1 year ago #

    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!

  8. rahul286
    Member
    Posted 1 year ago #

    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...

  9. mconte
    Member
    Posted 1 year ago #

    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!

  10. rahul286
    Member
    Posted 1 year ago #

    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?

  11. esmi
    Forum Moderator
    Posted 1 year ago #

    @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.

  12. mconte
    Member
    Posted 1 year ago #

    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!

  13. rahul286
    Member
    Posted 1 year ago #

    @esmi

    User offered admin access himself.

    Ref:

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

  14. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    @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.

  15. rahul286
    Member
    Posted 1 year ago #

    @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.

  16. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

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

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

  17. esmi
    Forum Moderator
    Posted 1 year ago #

    I'd suggest that you ask the OP to email you directly or post in your dedicated support forum. We encourage posters to be very cautious as not everyone who uses these forums is... shall we say... very ethical.

  18. If you want to help people here, you do it for free and you share as much as you possibly can.

    If you want to recommend an nginx specific site, it's fine to link to it (so long as that's not your only post ;) If it's your only post, you look like a troll, which you are not).

    mconte - I see a lot of plugins and/or themes that need upgrading. I know this seems odd, but you should try upgrading them to see if it's a bug with them.

  19. rahul286
    Member
    Posted 1 year ago #

    @alchymyth, @esmi & Ipstenu

    Thank you your answers and suggestions. :-)

    I come here to offer free support only in my free time. Usually, nginx-related issues I see on wordpress.org forum takes my 5-10 minutes of my time only. (I deal with wordpress-nginx as part of my daily job so answer for many problems are already in my knowledge base.)

    --

    For records, solution to @mconte problem:

    During multisite setup, WordPress ask admin to add few lines (sample below) to wp-config.php above: /* That's all, stop editing! Happy blogging. */.

    Sample Lines:

    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'example.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    On mconte's site, these lines were added at the top.

    I am yet to get confirmation from mconte.

    I will update this topic if any other issue found on his site.

  20. mconte
    Member
    Posted 1 year ago #

    I've already tried deactivate all plugins but I the problem still happens... Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic