WordPress.org

Ready to get started?Download WordPress

Forums

Move WordPress MS into a directory on the main site (11 posts)

  1. yayitswei
    Member
    Posted 3 years ago #

    Hi, I'm running a multisite network, and per the instructions WordPress is installed in the root public directory. This works great for our two network sites, each of which have their own domain (through the MU domain mapper plugin). However, on the main site I want the WP blog to be at http://www.mainsite.com/ourblog, and leave the root domain available for other purposes. Normally on a non-MS installation I'd just put WP in the ourblog/ directory and be done, but that's apparently not possible with MS setups. Can I use Apache redirects or other methods to achieve the same effect?

    I'm currently using multisite subdirectories, but can switch to using subdomains if it will make the problem easier.

  2. You can't use subdomains if you're not in root, IIRC.

    You can use wordpress in a subfolder like http://www.mainsite.com/ourblog so long as you don't mind your URLs being http://www.mainsite.com/ourblog, http://www.mainsite.com/ourblog/subsite, http://www.mainsite.com/ourblog/subsite2 etc etc.

  3. For what you want to do - use the main domain for something else - no, you can't.

    Unless what you wanted to do was also in WordPress.

    you can do a lot of fun stuff with the theme that is set on that main blog though (redirects, make it look like something else, etc...)

  4. yayitswei
    Member
    Posted 3 years ago #

    Thanks for your reply. Would it work with the domain mapper I'm currently using? e.g. http://www.subsite.com -> http://www.mainsite.com/ourblog/subsite

  5. Well, you can't map the main site so....

    Oh. And none of the domain mapping plugins will work if the install is not in the root.

  6. yayitswei
    Member
    Posted 3 years ago #

    I see. How about if I create a new site called 'blog', then using subdirectories the url will be http://www.mainsite.com/blog

    Then, I'll dress up the main wordpress site at http://www.mainsite.com for our other purposes.

    Just curious, is this similar to how wordpress.com works, but with subdomains? They host user sites using a multi-site-like setup, and have their company blog at blog.wordpress.com.

  7. You can't make a blog called blog. That's a reserved name. If you put wordpress in root, then by default, posts in the main blog will be 'mainsite.com/blog/permalinkstuff'

  8. yayitswei
    Member
    Posted 3 years ago #

    Ah, right. Is it still reserved if I switch to subdomains? So, blog at http://blog.mainsite.com.

    I'd actually rather use 'blog' than 'ourblog'

  9. I believe it remains reserved (in case you switch back, I presume). What about 'news'?

  10. yayitswei
    Member
    Posted 3 years ago #

    'news' would work well, I'm going to go with that. Thanks for your help!

    Should I mark this thread as resolved?

  11. Just curious, is this similar to how wordpress.com works, but with subdomains? They host user sites using a multi-site-like setup, and have their company blog at blog.wordpress.com.

    Yes, almost exactly like wordpress.com. Cuz they use the same code.

Topic Closed

This topic has been closed to new replies.

About this Topic