WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sites using subdomain format is not redirecting correctly (3 posts)

  1. Stanley Fox
    Member
    Posted 7 months ago #

    Hey guys,

    I just installed the most recent WordPress software with the multisite support.

    The main page at example.com works just fine. However, I just created a site at test.example.com, but I can't access the site. It maps to my /var/www folder.

    I remember reading somewhere that WordPress multisite doesn't work with subfolders, is that still true?

    I'm running several domains on my server, so cluttering /var/www with a WordPress installation is not an option. Therefore I installed the WordPress software in a user's home folder, the one who actually wants to run the WordPress multisite.

    So is there a way to run WordPress Multisite in a subfolder and using virtual hosts to map it to the correct folder?

    Will it work with folder structure instead of subdomain or not at all?

    Thanks for all the help!

  2. I remember reading somewhere that WordPress multisite doesn't work with subfolders

    WordPress multisite works great with subfolders! In fact, the setup is often less complicated.

    Primary Network site: domain.com
    Member site 1: domain.com/site1/
    Member site 2: domain.com/site2/

    So is there a way to run WordPress Multisite in a subfolder and using virtual hosts to map it to the correct folder?

    All you need to do is point the primary network domain to the correct location. You don't need virtualhosts for the subfolder sites within the network.

  3. Stanley Fox
    Member
    Posted 7 months ago #

    Thanks!
    I did figure it out earlier, but couldn't respond, because apparently this topic was closed.

    And sorry, I misused the work subfolder. I mean a subfolder in /var/www, not the subfolder method from WordPress.

    What I basically had to do is create a new Virtual Host file in /etc/apache2/sites-available/ with the subdomain name.

Reply

You must log in to post.

About this Topic