• I have a WordPress Multisite Subdirectory Site created. It works fine, but the staging site that I am setting up is having some issues. There is only one child site for now, and on the staging site, the child site has multiple extra directories

    PROD Setup
    Parent site structure: website.com
    Child site structure: website.com/site2/

    This is normal. However when I create the staging site I get this:

    STAGING Setup
    Parent site structure: website.com/stg/
    Child site structure: website.com/stg/site2/site2/

    The only thing that I have been able to come across when debugging is that there are no apache modules assigned. If there are no apache modules, then there is no mod_rewrite module.

    I’ve talked to my webhost (siteground) and mod_rewrite is active on the server so they think it is a wordpress config problem. My htaccess file has RewriteEngine On but it still has the same issue.

    RewriteEngine On
    RewriteBase /dtstg/
    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]

    Any help would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The only thing that I have been able to come across when debugging is that there are no apache modules assigned.

    What exactly do you mean by this, and how did you arrive at this conclusion?

    Even to serve a single static HTML file requires the loading of a handful of Apache modules. So how can you have an entire database-driven PHP application like WordPress running, and still claim no Apache module is loaded? (Unless you mean something else by “assigned”.)

    And, by the way, WordPress (or any other application) does not load or “assign” any Apache modules. It’s Apache itself that does it (via the configuration file).

    Thread Starter wadetaylornz

    (@wadetaylornz)

    If you look at the image here: https://i.stack.imgur.com/L1WU6.png it isn’t showing any apache modules in the debug tab of one of the staging plugins. You can see in the red box that for some reason it isn’t finding any of the apache modules.
    It should look like this: https://i.stack.imgur.com/MPpnM.png

    I think it’s a problem with the htaccess but can’t be sure.
    I’ve turned off all plugins etc to test but it hasn’t changed anything.

    • This reply was modified 4 years, 1 month ago by wadetaylornz.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Multisite Subdirectory Staging Site – Child site has extra directories’ is closed to new replies.