We create beautiful & user-friendly websites and provide quality web development services worldwide.
Contact us to get started on your project.


How to Change WordPress Multisite from Subdomains to Subfolders

Published by Veron Ang | 7

Since version 3.0, WordPress supports multisite features, allowing you to run multiple websites on one single installation.

If you have already enabled multisite functionality and would like to switch from subdomains to subfolders, here’s how.

  1. Open wp-config.php in a text editor.
  2. Look for the line define('SUBDOMAIN_INSTALL', true);. Change true to false. Save the file and upload it back to your server.
  3. With the structural change, you would need to update your .htaccess file with new rules. You can get these rules by going to Network Admin > Settings > Network Setup

Voila! You’re done. You should be able to create new sites in subfolders now. I am not sure if these steps work vice versa, ie. changing subfolders to subdomains. If anyone tries it, drop us a note in the comments section.

About the Author

Veron Ang is a , developer and WordPress expert at Sparklette Studio. She has been building websites for as long as she can remember, and graduated with a bachelor's degree in computer science from the National University of Singapore.


  • Yes, it works either way.

    the thing to keep in mind is it will not change the sub sites that you’ve already created. It only applies to new sites.

    • Thanks for clarifying.

  • […] brilliant one-click update to automatically update WordPress. Only in our case we actually have the multisite feature enabled so there’s an additional click to Update Network. Within minutes, we’re […]

  • This is a very interesting article that I am going to implement on my site, thanks.

    Can you tell me if this would work in this situation:
    My client’s site is in wordpress and they want to implement a new theme with no down time of the current site. So I created a subfolder and installed WP and the new theme… but I cannot “import” their same databases to the subfolder and I tried redirecting the subfolder wp-config to the root databse and that didn’t work. I was originally going to back up everything and upload it to the subfolder, but they have a bunch of custom stuff that is halting the back up.

    So do you think enabling the multisite option would work, then redirect the root to the subfolder when everything is done?


  • […] Sumber:¬†http://sgwordpress.com/teaches/how-to-change-wordpress-multisite-from-subdomains-to-subfolders… […]

  • Thanks! It worked!

  • Hey there would you mind letting me know which web host you’re utilizing? I’ve loaded your blog in 3 completely different internet browsers and I must say this blog loads a lot faster then most. Can you recommend a good web hosting provider at a honest price? Thank you, I appreciate it!

Leave a comment