How to Force Multi Site to Use Subdirectories

One of the most common issues to afflict most web developers who try to enable WordPress Multi Site is WordPress’s insistence that subdirectory blogs cannot be setup. The message WordPress throws up to show its dominance over afflicted web developers is:

Because your install is not new, the sites in your WordPress network must use sub-domains. The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.

And the first thing afflicted web developers do is… they scream at their computers “What the f**k is that supposed to mean?”

Seriously, what is it supposed to mean?

The next thing they do is Google for answers. I know this because I tried both strategies before I bit the bullet and re-installed a very large WordPress installation. Some of my search terms were:

  • Can’t enable multi site subdomains
  • WordPress won’t allow subdomains
  • How do I enable subdomains not subdirectories in WordPress
  • How do I force subdomain use in WordPress MS
  • WordPress subdomain subdirectory installation problem multi site

If you followed the same path as me and eventually, after re-installing WordPress, returned to the Multi Site activation screen you would know that re-installation, contrary to what is indicated by WordPress’s message, is not the solution. No, what WordPress is trying to say in a convoluted way is not that the WordPress installation is too old for Multi Site to be enabled for subdirectories but something else. Here is a translation of its message:

The URLs of some of your blog posts might conflict with the URLs of the subdirectory sites you create when Multi Ste is enabled therefore it is advised that you do not enable subdirectory sites.

Why the hell the WordPress development team use such cryptic error messages that require translation is, well, a Universal mystery.

In short, if a WordPress site is more than 30 days old, WordPress will try to prevent its multi-site conversion from using subdirectory addon sites.

There is a workaround to enforced subdomain addon site installations. Yes, we can fight back and force WordPress to allow subdirectory sites.

Force WordPress to Allow Subdirectory Blogs

During the activation of Multi Site a few lines of code need to be added to wp-confg.php. One of those lines states:

define( 'SUBDOMAIN_INSTALL', true );

That line tells WordPress to use subdomain addon sites.

Change it to

define( 'SUBDOMAIN_INSTALL', false );

and you will now be able to create subdirectory sites.

Currently, WordPress messes around with subdirectory site URLs. It adds a /blog/ slug after the TLD. For example, if a subdirectory site is created with the name “apple” such that its URL should be


then WordPress renames it


Now that does not look very professional. In fact, it looks pretty damn ugly. Thankfully, the “blog” slug can be removed. A plugin is available from ThinkingWordPress (direct link) which does just that – it removes the ugly “blog” slug.

There are Two Snags with All This

Forcing WordPress to allow subdirectory addon sites on old WordPress installations has a price:

  1. Subdirectory sites that resemble existent post, page, tag, category or directory names must not be created,
  2. Some subdirectory sites will not display as they should because of conflicts with the main site’s permalink URL structure.

The solution for the first issue is simple:

  • Do not create addon sites with names the same as existent WordPress slugs.

The second problem is characterized by any of

  • Subdirectory sites do not display when viewed
  • Subdirectory sites display but their themes are corrupt (missing CSS files)
  • Subdirectory site backend admin panels redirect to the main site’s admin panel

Other symptoms will probably exist also.

The solution is simple and involves changing the Multi Site’s URL rewrite rules.

Edit your .htaccess file and replace

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]

# END WordPress


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
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]
# END WordPress

And that is all there is to forcing WordPress to allow subdirectory addon site installations when Multi Site is enabled.

The Blog Slug

WordPress will insist on inserting a blog slug into the sub-directory URLs such that my-blog.tld/site-one/my-post will look like my-blog.tld/blog/site-one/my-post. This can be removed with the Remove Blog Slug plugin from here.

Sharing is caring!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

newest oldest most voted
Notify of

Hi, thanks so much for this, its been so helpful and I am so close to solving my multisite problems. I have followed everything you wrote and managed to get my second site to work as a subdirectory (/dj/), I can add pages in the admin, but when I come to view them it throws a 404.

Basically I am trying to view “” and my error is saying “You tried going to and it doesn’t exist.”

For some reason it is duplicating /dj/ do you have any ideas how I may solve this?

It’s all good, I fixed it. I had a remove category base plugin that needed to be disabled and reactivated to kick in. Thanks so much, you are a legend!!

One last thing, I don’t suppose you know a plugin that allows me to move posts/pages from one site to another within my network?

Nice article Dion. I am planning to create new channels of my blog and right now, utilizing the multi-site feature of WP 3.0 seems to be the best way out, except for one snag – Google XML Sitemaps plugin doesn’t work in that mode. And it is quite an important plugin as far as I know.

I did search for alternatives, finally found one called XMl sitemap feed, something like that…but that didn’t work as expected. It gave errors and all.

So, that is what is stopping me from enabling the multi-site feature. Can you help?



In fact I just saw that you are using the same plugin I was talking about. And it appears to have the same issue – gives errors when I try to load it.

Here’s a thread I posted on WP support forum – ..check what the plugin author has to say about caching and all. I gave your site as the example there. :) I use Robots Meta plugin already. Should I still go for KB robots.txt? And are you sure that each new site would need it’s own robots.txt? I was told by someone, who owns a huge blog with different channels, that he only has one robots.txt but different sitemaps. Although, he uses sub-directories and has separate WP installations in them. So I thought it should be more or less… Read more »

So that means, since I’d be using sub-domains, I don’t need to worry about robots.txt, right? ( and yes, Robots meta does work in multi-site mode..I guess I just need to network activate it). I cannot see your reply on that thread for some reason. Hence I’ll ask you here. Do you use W3 total cache? Did you configure it separately for each of the new blogs you added? Another question – did you a notice significant changes in your search traffic after you shifted to the xml sitemap feed plugin? I just wanna be absolutely sure before I shift… Read more »

Ah, Dion, I am confused again. :) Could you please check out that WP thread again – , especially the conversations I had with RavanH towards the end. I basically need to know what are the steps I should follow. Here’s my current position – I have a WP blog, WP version 3.0, it has a manually created robots.txt and a sitemap.xml created by the google xml sitemap plugin. Now, I need to enable multi-site mode and add 1 or 2 blogs in sub-directories. Since google xml sitemap plugin doesn’t work in that mode, I need to ensure that… Read more »

OK, cool. So we now have both the experts (you and RavanH) on the same page, and I know exactly the steps I need to follow. Good. :)

Yeah, I am on a shared server, but the traffic isn’t that much. The site is only 6 months old. Plus I am planning to move to VPS next month anyway. So I think it’d shouldn’t be a problem. But thanks for informing me.

Thanks again Dion for your prompt replies. Really appreciate it. I’ll report back when I have the process done, which I think should be this weekend.

Works excellent , thanks you really very much , I can’t imagine how many days I should spent to resolve this problem without you. Gotta say that I have changed the subdomain installation to subdirectory (so NO new fresh installation ) and this thing seems that works too.


Thanks for this post. Works like a charm.

Dave Harris

This page: says: “You cannot choose Sub-directory Install in the following cases: * If your existing WordPress installation has been set up for more than a month, due to issues with existing permalinks. (This problem will be fixed in a future version.) ” Does the above this this issue? Or can I still not transition my current set of individual WP blogs (using subdirectories) to WP 3.x multisite, using subdirectories? I would love to move to WP MS if this issue has been fixed by the above code (it’s not clear to me). Thanks, this is a great tutorial… Read more »

Dave Harris

Cool, great to know. Thank you!!

Hi, I was just working with a site that has this implemented and had broken somewhere along the way. Failing to find and fix the problem, we’ve implemented the whole network and forced subdirectories anew, and it almost all works except that the dashboards of all the sub-sites have no CSS or images (actually the sites themselves have no style from the Twenty Ten theme either). All the image and stylesheet URLs have the site slug in them rather than being located at the root of the network. So they’re NETWORK_URL/site-slug/wp-admin/css… instead of NETWORK_URL/wp-admin/css… Have you encountered this? Have you… Read more »

Hunter Gatherer

Hi, Worked great on an “old” new site that we hadn’t posted content on yet. I’ll let you know when we try to migrate an existing one. Thanks a lot for your guidance. The only thing I could add is that when you go to Tools>Network, that’s when it’s going to ask you to “Install”, with only the subdirectory option. After you hit “install”, that’s when you update your wp-config.php file and your .htaccess files to your given code. I wasn’t sure whether to hit “install” when it only gave the subdirectory option. I went ahead and did, then was… Read more »

After following these directions now all the posts/pages/etc. on my main site redirect to the main site’s index page. Any idea why this would happen?

Can’t seem to find anyone else having this issue. I “deactivated” multisite for now until I can find a solution.

I do have that plugin but I had it disabled. The problem specifically happens after modifying wp-config.

It’s a 302 redirect. Still trying to figure out why.

I have found the problem to be when changing

define( ‘SUBDOMAIN_INSTALL’, true );


define( ‘SUBDOMAIN_INSTALL’, false );

I can go through the steps perfectly but when I change this value to ‘false’ every page* is redirected back to When I change the value back to ‘true’ it does not redirect.

Any ideas?

The only other code in the .htaccess was for W3 Total Cache but I have deleted that temporarily for testing purposes here. I haven’t gone through and reactivated each plugin one by one but the redirection happens when all are deactivated as well as when all are activated.

I will try reactivating them one by one.

I’ve found that the redirects don’t happen when I have it on default permalinks but if I change it to anything else it redirects. I’ve also been having a discussion in the forums here.


hey thank!  had similar isssues,and while the first htaccess post didnt work, THIS one did.

ty ty ty ty. I cant thank you enough.

I’m in agreement with you that I tried all the things you mentioned above.

No luck on that new .htaccess. Same results. I’m moving towards backing up/exporting my current WP installation (around 1,000 posts), doing a fresh install and then importing all the posts/pages after I set up multisite.

I hadn’t even made any additional sites on the network yet. Just the main one.

Actually, if you do the change in wp-config to switch the type of install, you can get the new rewrite rules by visiting the backend. They’ll switch. ;)

Hunter Gatherer

Hi Dion, Well, I tried the process on an existing site. The content is not critical, so if I have to reinstall things, it’s not a big problem. This is what happened: 1) I did all the instructions: edited the config; edited the htaccess; uploaded everything: 2) Went to Tools>Network 3) The only offer was subdomains 4) Installed 5) Got the screen with the codes and salts: installed them in the appropriate files; edited config for subdomain false; change the .htaccess; completed the process; 6) logged out 7) logged in 8) SuperAdmin present 9) Add site> added a couple of… Read more »

Hunter Gatherer

Hi Dion,

Tried Default theme, Same story.


I am having a similar issue to HG. Took exising WP Blog and Added Network feature with subdirectories.

Added 2nd site: but domain mapped it to

Only some people can actually see the blog (which is just generic) and I can’t get the dashboard for that site at all.

The original dashboard has all the Super Admin stuff, but I can’t get to the dashboard for the new blog. Can’t change theme or anything.

Wondering if there is a permissions issue or some other PHP mod I missed somewhere.

Thanks in advance for thoughts.


Hunter Gatherer

Hi Dion,, Thanks for following up. Since my site had only a minimal amount of content, I decided to just do a complete re-install with a new database. I ran into a few problems along the way, but ended up over at the WordPress forum on Multisite. Among other things, I couldn’t log in; got no SuperAdmin, etc. and had to do the cycle a few times. The easiest part was getting away from the white screen of death. Andrea Rennick helped me. She did mention this problem a number of times on other threads. Just start a thread. I… Read more »

I have three blogs running on my domain. I think multisite allows control of the sites from a superuser to manage the multi sites.
I’m actually looking for a way to have the page rank of all the pages/posts on the three blogs count toward the page rank of the main site.
Do you or any of your readers have any ideas if this can be achieved please?

You are a genius! Thanks so much for sharing this with everyone.

Mehul Kothari

Hi, I just installed WP 3.1 in Arvixe account and my plan is to have multisite installation. So, I followed the steps given on for multisite installation. I did the steps:- 1. adding one line in wp-config.php. 2. Logged In and select sub-directories as option and then added 2 new folders in wp-admin and added more lines in wp-config.php. 3. But at that time, I do not have .htaccess file so I tried in web.config and it did not work and so I reverted back. 4. I logged into the site and I could see network admin and all.… Read more »

Mehul Kothari

Hi, Yes, I have put the replacement rules like: # BEGIN WordPress RewriteEngine On RewriteBase / 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).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L] RewriteRule . index.php [L] # END WordPress Also, I have been using Arvixe for ASP .net application and now we thought to have same hosting provider for wordpress, so we installed wordpress. In the above rule, when I put in remote IIS server,… Read more »

Mehul Kothari


This is fixed in windows server as I followed the rule given at the link:

WordPress hosted on windows server, please use the rule given at the link:


Thanks, this solution worked perfectly!


When I follow these instructions I am then unable to log in at all. What’s wrong?

Hi Lukeradi, it’s most likely an htaccess rule that’s the issue. If it works with a blank htaccess file then you will need to look at the current file for errors.

Before I can give any other suggestion I need to know whether you can you see the front end of the site and whether it’s only the admin section that’s inaccessible. Do you get any error messages?


Thank you so much, I was seriously stuck and you fixed it all!!!!  thank you thank you! 

Matt, you are welcome. Please share this and please look around at my WordPress .htaccess hardening posts because I’m sure you will find them useful.

I hacked the code to enable subdirectory installation.  1 line and that’s it.  Installation was flawless.

add the following line in
“wp-admin/network.php” at line: 66

return true;

Thanks Henry :)

Is that the full line or was some of it removed by the comment system. You can use code tags if needed.


Hi Dion,

I’m at it again on a another site.  I forgot the whole process and found your page again.  I’ll follow your instructions and give it a go.  I’m glad you’re still here.



Hi, good to see you back. Let me know if you need any help :)

Hunter Gatherer

Thanks a bunch for your help.  I can’t believe how relatively easy this was thanks to you.  I took an old site that had just been sitting there, moved it to a network install and got buddypress up and running in minutes.  Without you it wouldn’t have happened until Andrea straightened it out.  That code eliminated the 404’s in an instant.

You’re on the top of the heap.  Thanks again…

You’re always welcome and I’m glad I could help.

Hunter Gatherer

Hi Dion, Most of it went okay.  No major installation issues.  But I do have a problem viewing the pages.  All of them, other than the site’s home are showing as 404 errors.  I put a BuddyPress over it, went through the normal BP configuration; it created pages and navigation; but nothing shows up.  I took BP off and it does the same thing and I can’t get to any real pages.  The error reads Error 404 – Not found Your browser can’t find the document corresponding to the URL you typed in. Got any ideas where I went wrong… Read more »

Recreate the wildcard DNS record for subdomains. BuddyPress sometimes upsets the server. I don’t know why it does it but it’s happened to me a few times: as soon as I activate BuddyPress on any site hosted on the server this site is on, my server forgets the wildcard DNS so WP can’t create subdomain sites. At which pint I’m forced to delete the wildcard and recreate it. If recreating the wilcard DNS record fails to solve it, do you have a redirection plugin installed and are we working with an .htaccess file that contains only the WordPress rewrite rules… Read more »

Hunter Gatherer

Thanks for the quick reply.  I must not have been clear; 

I set it up as a subfolder install; not subdomain.  I’m sure that has something to do with it. 

What are your .htaccess rewrite rules? Place them in pre or code tags when you post them in the message.

Hunter Gatherer

They look like this:

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]

# uploaded files
RewriteRule ^files/(.+)

wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule . index.php [L]

Try these:

# BEGIN WordPress
RewriteEngine On
RewriteBase /
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]
# END WordPress

Do you have any plugins installed that might interfere with the way WordPress writes permalinks and have you been to Settings>Permalinks to save them again?

Hunter Gatherer

You are a frigging Wizard Dion.   Worked like a charm…

I know, I know but don’t tell everyone :D

Here’s something you’ll like to know: when using multi-site, install and network activate the Proper Network Activation plugin. Some plugins fail to properly activate across a network when network activated, this plugin forces them to activate properly.

Have fun with your new site. Let me know if you need more help  :)

Yes,!!!!! You so fking cool man!!! You really save me days fighting with this cumbersome!

I’d like to do what this post describes, but my wp-config.php file contains no such line:
define( ‘SUBDOMAIN_INSTALL’, false );

Any help?

Hi Rusty, that line won’t be present until you put it there. Follow this well trodden guide to enabling multisite then return to this page to force the subdomain install.

Let me know if you need further help and I’ll be happy to oblige.

though not directly related, this is similar, and not finding any resolve.  WordPress MU Using Wildcard DNS wildcard DNS and new account creation work good Issue: RSS on tld works using feedburner –> RSS does not find a feed on  it merely reloads the page.  Posts on Permlinks issue when using custom permalinks Posts permalinks are not working, they bounce to 404, though when you call the posts permalink, the structure all looks correct parsing /%year%/monthnum%/%day%/%post-name%/ when changed to default permalink posts permalinks work. so kind of a compound issue here, one may or may not be… Read more »

Hello John, take a look through your .htaccess files in the WordPress installation directory and directories above it. I’ve a feeling you have a rewrite rule that’s preventing the RSS feed from displaying. Do you have a rewrite rule to remove the www hostname? WordPress automatically resolves that and placing such a rewrite in your .htaccess will cause problems in a multisite installation. Also, check for redirects in plugins like “Redirection”. Plan of action: 1) Disable all plugins used anywhere within the Network 2) Check whether pages and the RSS feed still 404. 3) If they do 404, check all… Read more »

Rly gj ! tnx !

Dion, Thanks! As others have said, you have made the inexplicable very easy. Haven’t touch Multisite for about 18 months, now building a new collection of sites and your post saved me HOURS!

One question for you. . . my main WPsite is at, and I want all my subsites at Does this mean I need a single-site version of WP on, and then a MS version at sub, Or can I work some htaccess magic to make this more sane?

Thanks again for all you help!

Cool it works :) thank you for the post!


you saved my life


Brilliant post, this worked perfect, keep up the good work.


I had no idea what I doing, and this was an enormous help. One suggestion – move Hunter Gatherer’s comment (from 2 years ago), regarding when to include the ‘false’ statement. I was very reluctant to hit ‘install’ before reading that comment. Many thanks.

Works great, thank you very much! I was able to change my subdomain installation to subfolders using this.


I enabled the 3.0+ network only with one line, define(‘WP_ALLOW_MULTISITE’, true);
I can’t choose subfolders, and I like to have that (it’s a must)
If I add the line from the post I got a “site doesn’t exists on the network” message. Anybody has the same? Maybe it’s from an outdated activation? Help please if you can!

Gary Gonzales

Hi Lee, Fantastic information, which allowed me to implement sub directories despite WordPress telling me I couldn’t. A bit scary at first for me uploading this as I don’t use FTP that much and to be honest , not really au fait with directories and files. But I got there in the end, so Many Thanks. One problem I have come across is that when viewing Themes, the option to delete the theme has disappeared! Any ideas??

Best Regards,

Gary G


Hi Lee, thanks for this clear post. Very helpful indeed! I currently have a WP Multiside with 5 subdomains that I’d like to change to sub-directories because of better Google searchability. How now do I move the contents from the subdomains to the sub-directories? I was thinking to just change the urls both at the WP-MS admin part and the physical directories via FTP. Who that do it?


Thanks Lee. I’ll first try myself. Three questions though:

If I change subdomain install to false, will the subdomains and the site actually still be active as such? In other words can I run this operation in parallel with the existing sites still functioning?
Can I keep using the multisite install?
What are 301 redirects?

thanks again


Hello Lee,

It’s me again. I managed to move from subdomains to directories. Yet since there are no virtual subdomains anymore I tried 301 redirecting the old virtual subdomains to the new directories. When I enter the old URL it redirects to the primary domain only and not to the new subdirectory. Any idea how I can fix this? If you want I can send you my .htaccess.

I used wordpress 3.5.1 and tried the step you gave as I want subfolders, not subdomain on my 1 year old site.

But after editing the config & htaccess as instructed, and log again as WPMU told me to do, I get the error that the site cannot connect to the database.

Do you know what I did wrong ?


Good Tutorial


Adding the ‘subdomain_install’ line and setting it to false causes the site to show: “No site defined on this host. If you are the owner of this site, please check Debugging a WordPress Network for help.”

Removing .htaccess doesn’t help.

Any ideas?

How does wordpress know how long the site has been installed for?


I have this issue and try to follow your instructions. But i dont find the: define( ‘SUBDOMAIN_INSTALL’, true );

and when i paste it, also tried with: define( ‘SUBDOMAIN_INSTALL’, false ); in the file wp-config I get an error message, after i uploaded it, thats related to the server.
its like the whole admin system shuts down.

What do I do wrong? Where shall i Put it?

Thanks a lot

This is the messade: No site defined on this host. If you are the owner of this site, please check Debugging a WordPress Network for help.
Saw you answer above and its not www before, do you know what i can do? Thanks a lot!

Lee, do you have an answer for me also? Please

Hi Leia,
Sorry for jumping but since I resolved the issue on my site I am very eager to help you.
If you don’t have the SUBDOMAIN_INSTALL mentioned in your wp-config, are you sure the site is the multisite. Please verify that you are referring to the correct wp-config. I wrote about my success story and would be glad if you find it helpful. Please read below and let me know.


I have a multisite at this point with subdomains.
I am having bad time doing seo for the subsites so i am planning to change it back to either subdirectory multisite or categorized url with single site install. But wondering if either of the two would cause me any trouble.
Please help me take a decision on subdirectory multisite or plain wp install with category in the url to appear like subsites.

Hi Lee, Thanks for your reply! Appreciate your instant response. I buy your suggestion of using the plugins you suggested for Multisite. For your information, last night I was very curious to change my subdomain url structure to subdirectories. The site is still Multisite and the procedure was very simple. Just a few updates and the site was ready with the new structure in about 1 hour. There is no need to do any migration, etc unless you are changing your main domain or the hosting server. I also wrote about the success story in my blog that I will… Read more »

I’ve followed your post. I’m running 3.5.2. It was a new install that I imported posts from another website. I can access the admin menu no problem but when I visit the site I get a 404 error. I’n not sure where I am going wrong. My design isn’t uploaded yet and all my plugins are turned off. Do you think my importing my posts set my site as “old”?

Nevermind I found the problem. GoDaddy created a folder in my root file that was empty. I deleted it and it fixed everything.

Sharif Khalladi

Hi Lee,

Thanks for this – it worked like a charm, however, url’s without a trailing slash aren’t working in any of the sites that are created in subfolders.

ie and its subsequent pages work with and without trailing slash (

but on a trailing slash is required. without it the page redirects to

any ideas? it’s probably something in the .htaccess


Sharif Khalladi

Lee, thanks for getting back to me. Your solution does seem to work, however it breaks the CSS of the subsite. Any suggestions? Much appreciated!


You could also just delete the default page and post that gets installed with wordpress (and remove from trash as well). Then it will let you choose sub-directory.

After doing this, when I go to dashboard for the new site Chrome tells me that there is a redirect loop. I can bring up other pages, but all the CSS is broken

any ideas?

Steve W

Heads up on this redirect loop. I fixed it by:

After the install, go back to My Sites > Network Admin > Settings > Network Setup. WordPress then furnishes you with a new set of goodies to replace in your .htaccess. Swap it out and voila. Pretty much the same as what you had posted above JX. I dont know why or what the *&^(! but it worked without error.

Christie Ellis

THANK YOU!!! :-)


there is error 500.. after i replace the contents in the .htaccess file. After changing back to the old contents of the .htaccess, i was able to return to my website.. any idea where went wrong?


thanks….it worked

but on another site, i used multisite but subdomains not working.
can you help me?

It worked for me without using the Remove Blog Slug plugin. Thank you very much for this help! It was easier than I thought.

and I am still confused what is the motive of the subdirectory

Thank you very much for the .htaccess code. Worked perfectly.


Thank you!


Thank you so much! Finally – after 4 weeks of trial and error it worked. You made my day!

This is the exact issue i have faced when i try to setup multisite installation. Clever article found in right time. Let me follow your instructions straight away and get back to you soon, if i found any issues.

Thanks and love your share

Hello JournalXtra

When I’m changing .htaccess file. I’m getting Internal Server Error. What could it be?

Hi Lee, there’s actually an extra space after RewriteRules in both lines 17-18 which probably explains a lot of the readers’ errors. It took me hours to notice that myself. With newer versions of WP however, the code would instead be:
which is what I used.

Thank you tremendously for writing this post. It’s simple to understand, purely amazing. You’re great.


Thank you for your contribution. It has been helpful for my project.


Hi, thank very much for this tutorial.
This step by step helped me a lot!

Thank you for the useful post! Initially, I did start with the subdomain structure as i did not know i have an alternative but thanks to you there is one. So now I have the new site shown in the dashboard but when i try to visit it i get this error: Forbidden You don’t have permission to access /london/ on this server. Apache Server at Port 80 any idea why this is happening? for the record i have created a subdomain at the host and then deleted it but still i get this error. for the 2nd site… Read more »


You saved us!! Thanks!! Everything is working again.


Thank You so much for this post. Finally solved all my Multi site problems :)

Raju odedara

Could you help me to fix the issue i’m having similar issue.

Jonas Hjalmarsson

I had some trouble after doing above steps. After search and replace my newly changed to didn’t show anything. After som troubleshooting I found that I had to change the domain and path in wp_blogs, I haven’t seen this in any of the guides before I did the domain to suddirectory switch. So I thought I’d give a hint if you are struggling as I did ;)