Themes Not Available to Sub-SubDirectory Sites
-
After spending days and days of getting the kinks worked out, I am hopefully down to one last issue and have finally broken down and decided to ask for help. ??
I have WP 3.5.2 and hosting through GoDaddy. I have only one active plugin at the moment, which is “Networks for WordPress”. I have little websites I do here and there for different organizations or groups of people. Some are different sites for different projects within the same overall group, but I wanted each site to have its own theme, so an example would be having site.com, site.com/org1, site.com/org1/project1, site.com/org1/project2, site.com/org2, site.com/org2/project1, etc. all with their own themes. I tried all sorts of things to get it working, and after trying a ton of different .htaccess tips from old forum postings, this has definitely gotten things working the best so far:
# BEGIN WordPress
RewriteEngine On
RewriteBase /# Rule 1
RewriteRule ^index\.php$ – [L]# Rule 2: uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)*files/(.+) wp-includes/ms-files.php?file=$2 [L]# Rule 3: add a trailing slash to “/wp-admin”
# Note: This rule issues and redirect that will subsequently match Rule 5
RewriteRule ^(([_0-9a-zA-Z-]+/)*)wp-admin$ $1wp-admin/ [R=301,L]# Rule 4: do nothing if URL is a file or directory
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]# Rule 5: strip preceeding path from wp-(content|admin|includes) paths
# Example: {RewriteBase}sub-site/sub-folder/wp-admin/sites.php –> {RewriteBase}wp-admin/sites.php
RewriteRule ^([_0-9a-zA-Z-]+/)*(wp-(content|admin|includes).*) $2 [L]# Rule 6
RewriteRule ^([_0-9a-zA-Z-]+/)*(.*\.php)$ $2 [L]# Rule 7
RewriteRule . index.php [L]# END WordPress
# BEGIN wtwp_cache
# END wtwp_cache# BEGIN wtwp_security
# END wtwp_securityThe problem is that when I install and enable a theme, it will show up on the theme list for the first subdirectory (i.e. site.com/org1), but it won’t show up past that first level (i.e. not for site.com/org1/project1). The two themes included with the initial WP install do show up on the list, just not any new ones I am installing and enabling for the network.
Any and all ideas are appreciated. Please let me know if there is any additional information I can post that may be useful.
Thanks!
Ashlee
- The topic ‘Themes Not Available to Sub-SubDirectory Sites’ is closed to new replies.