WordPress Multisite Subdirectory Staging Site – Child site has extra directories
-
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.
- The topic ‘WordPress Multisite Subdirectory Staging Site – Child site has extra directories’ is closed to new replies.