Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have implementing the nested paths for WP multisite from the following tutorial: http://maisonbisson.com/blog/post/14052/wordpress-hacks-nested-paths-for-wpmu-blogs/

And almost 90% of the tasks are implemented but I need help with RewriteRule in .htaccess file.

Following is my current .htaccess file:

RewriteEngine On
RewriteBase /james/
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

I cant get the stylesheet, JS and images paths rewritten in the .htaccess, I have tried mutiple rules, i tried replacing:

RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]

with:

RewriteRule ^([_0-9a-zA-Z-]+/)+(wp-(content|admin|includes).*) $2 [L]

But this only helps get the images working for the default 2010 Theme for slider.

I am working on: WordPress version 3.4.2

share|improve this question
add comment

1 Answer 1

WPMU was merged into WordPress back in ... 2010? I notice the tutorial you are looking at is from 2009. I guess some people still confusingly refer to WPMU when instead it is WordPress Multisite.

While most of the concepts are probably still valid ... what are you trying to achieve? Just to have separate domains with different themes is standard functionality without much effort.

If you want to setup WordPress Multisite with a number of domains, then you could try WordPress MU Domain Mapping.

It's this plugin that Andrea_R is referring to in her comment on the tutorial you're trying to follow.

BTW - Andrea_R is one of the main moderators on the WordPress Multisite Forum She even has a free guide on her website about how to setup a WordPress Network.

share|improve this answer
    
Thank you for the answer, yes i know the tutorial is pretty old but it still works and it is working 90% of the part. I am trying to add nested paths when adding blog, which is working like "mydomain.com/department/travel" and it is adding and operating fine. but the stylesheet, JS and images path are not working, something has to be with ReWrite rule –  Daniyal Sep 15 '12 at 9:33
    
just not sure .. why do this when WPMU is no longer a separate code base and there are plugins that do this? –  Damien Sep 15 '12 at 11:46
    
can u tell any plugin which lets u crete nested path blog? –  Daniyal Sep 15 '12 at 13:53
1  
Actually Andrea_R and her partner have a Network of Networks plugin ... see wpebooks.com/networks –  Damien Sep 15 '12 at 17:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.