Trouble with Multi Site Nested subdirectory sunrise.php solution
-
After bashing my head on the keyboard for a few days of tweaking and attempting to figure this out on my own I figured I’d see if someone else already has.
I’ve done the tutorial below, along with a few variations of it. From what i can tell, this is the original not copied version.
As you probably know, you cannot do nested subdirectories in a wordpress multisite out of the box. I need to do this (without multiple installs) to meet the needs of this project. I need site.com/blurb/subsite. This work around uses a quick fix to htaccess and the sunrise.php drop in and boasts it can get it to work. I cannot. It may be due to a 3.8 change, but I’m at a loss.
(note, there’s some html encoding in the first line that should be
&&
)
http://www.paulund.co.uk/wordpress-multisite-nested-pathshere’s what i’m getting output in the wp-admin
(sunrise.php called after the “happy blogging” bit in wp-config.php)Warning: Creating default object from empty value in /home/dev55/public_html/wp-content/sunrise.php on line 3 Warning: Cannot modify header information - headers already sent by (output started at /home/dev55/public_html/wp-content/sunrise.php:3) in /home/dev55/public_html/wp-includes/option.php on line 563 Warning: Cannot modify header information - headers already sent by (output started at /home/dev55/public_html/wp-content/sunrise.php:3) in /home/dev55/public_html/wp-includes/option.php on line 56
- The topic ‘Trouble with Multi Site Nested subdirectory sunrise.php solution’ is closed to new replies.