• Resolved chicadieta

    (@chicadieta)


    I have a fresh WP Network install (from scratch). My network is running with the subfolder install, i.e.
    define( 'SUBDOMAIN_INSTALL', false ); in wp_config.php, although each blog has it’s own domain (tried with the subdomain install set to ‘true’ but then I got the redirect loop to the login screen when trying to login to the admin panel on any blog besides the main site one).

    So I have my network installed on mainsite.com and different blogs on domain1.com, domain2.com, domain3.com, etc. I don’t have any active plugins yet (a few installed, none active).

    When trying to use permalinks on any of my network blogs, each page redirects me to mainsite.com. Permalinks work just fine (any of them) on my mainsite.com blog, so I guess this is not a problem of hosting configuration or .htaccess file content. The problem is only with the other blogs (domain1.com, domain2.com, domain3.com, etc.) which keep redirecting any post or page to mainsite.com when using permalinks. Posts and pages links with the default (ugly) style work just fine, the issue is when trying to use permalinks.

    As I said, not a single plugin is active in any of the blogs. Tried changing themes also, didn’t work.

    Please help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What’s in your .htaccess?

    And is AllowOverride set to ALL in your httpd.conf?

    Thread Starter chicadieta

    (@chicadieta)

    This is what my .htaccess looks like:

    # BEGIN WordPress

    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$1 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    # END WordPress

    And I don’t know about the httpd.conf but I’m positive this is not a problem with the server, because everything works find for the main site. This is a problem of network blogs redirection.

    I actually installed the Domain Mapping pligun and now it works. But I’m not completely satisfied with this, I would think that WordPress would manage a network by itself, without a need for a plugin. Else, why have the sites configuration on the admin panel? If I put my domains in there (corresponding to each blog) it should work, and it does partially (it’s ok for default links but itr doesn’t properly recognize permalinks).

    As I said, my network is working because I installed the mapping plugin but otherwise I would have had to stick to the default links, and I don’t think that’s OK, WordPress should manage that 🙁

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    And I don’t know about the httpd.conf but I’m positive this is not a problem with the server, because everything works find for the main site. This is a problem of network blogs redirection.

    Yes, and the network blog redirection for subsites needs AllowOverride to be set to all 🙂 the requirements for Multisite are similar, but not 100% the same, for Single installs. Which is why your main site works. The subfolder installs sometimes need the extra juice.

    Thread Starter chicadieta

    (@chicadieta)

    I made myself look like a fool, didn’t I 😉

    Well, unlwss this Domain Mapping plugin changes this configuration on the server then I gues the issue was on the WordPress end.

    About the subfolder install, I only used it because the subdomain install didn’t work. I read in the support page about creating a WP network that the subdomain install is the choice when your blogs will have different domains, which is my case. Nonetheless, if wp_config.php was set to subdomains I got the – very annoying – login redirect loop. I was forced to change to the subfolder install in order to be able to log in to the different blog’s admin page (and then I stumbled upon the domains redirection issue).

    As I said, I don’t believe a subfolder install is the optimal configuration for my network (including having to use the plugin for it to work properly), but it does work so I’ll just leave it like that.

    In any case, thanks a lot Ipstenu 🙂

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well, unlwss this Domain Mapping plugin changes this configuration on the server then I gues the issue was on the WordPress end.

    It doesn’t but it does change how the URLs are parsed in WP, which changes what bits of the .htaccess are used and in what way.

    Subfolders are usually fine. When WordPress, itself, isn’t working out of the box, no plugins added, it’s a sign that your server doesn’t have the right settings.

    Now that you’re using mapped domains, this part of the .htaccess isn’t being used ([_0-9a-zA-Z-]+/)? and, apparently, that was causing your server to cough and die. If you have other issues, you may want to circle back around to that httpd.conf 🙂

    Thread Starter chicadieta

    (@chicadieta)

    Sure I will! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Permalinks only work in main site, not network blogs’ is closed to new replies.