• Resolved Erica

    (@ericamdion)


    I have spent many hours trying to debug this and now I’m looking to reach out and see if someone else has had my problem. I’m not sure what happened, I have multiple sites running on a multisite install. They all use the same theme, the same plugins, and pretty much the same settings from what I can see. Problem is that blog #1, the root blog with no sub-directory, is not working with the nice permalinks. Everything continuously redirects to the homepage so I can’t debug the 404 page or find out where it’s going. All I know is if I type anything after the URL, even a page that doesn’t exist, it goes straight to the homepage. PLEASE HELP!

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

    (@ipstenu)

    ?????? Advisor and Activist

    Did they ever work?

    What’s in your .htaccess?

    Thread Starter Erica

    (@ericamdion)

    Thank you for responding. I’m sure they did work when I first installed and activated multi-site. I dont initially recall it though because there wasn’t much time between the install and importing of data. My htaccess only contains what was given to me at the time of activating mutli-site:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Okay, just so you know, it’s VERY important to make sure that permalinks worked BEFORE you turned on Multisite.

    What plugins are you running? I know they’re all the same, but I gotta ask.

    Thread Starter Erica

    (@ericamdion)

    Sorry for the delay. I was seeking help from a colleague but so far no luck still. The plugins I’m running are:

    All in One SEO Pack
    BackupBuddy
    Banners-manager
    cforms
    Gravity Forms
    Image Widget
    Network Shared Media
    WordPress Download Monitor
    WP Mobile Edition
    WP Smush.it

    @erica,

    Can you try resetting your permalinks on the main site? Save them as anything other than what you have them set at, next save them back to what you want, then check and see if they work.

    Thread Starter Erica

    (@ericamdion)

    Thanks for the responses. I’ve been working with WordPress for a very long time so I went through all the motions that are expected and nothing worked. I finally figured it out with a colleague. Our boss who setup the staging server setup WordPress multisite on a subdomain. As soon as I started adding subsites the permalinks went haywire as did a couple other items. I had to restart the project on a single domain and now everything is fine.

    We did determine a sort of hack solution though. Not sure how legitimate it is but it worked for the time being. If anyone else requires setting up WordPress multisite on a subdomain, modifying the wp-config file as so seemed to make it work again:

    Change
    define('SUBDOMAIN_INSTALL', false);

    to

    $url = $_SERVER['REQUEST_URI'];
    $url = explode('/',$url);
    if($url[1]=='subsite1' || $url[1]=='subsite2') { //Define each sub-site path name
       define('SUBDOMAIN_INSTALL', false); //subdomain
    } else define('SUBDOMAIN_INSTALL', true); //mainsite

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Permalinks Not Working on Root Site ONLY’ is closed to new replies.