The MU forums have moved to WordPress.org

Subdomain install, not located in the hosting root: possible? (12 posts)

  1. seb_m
    Member
    Posted 16 years ago #

    I installed WPMU in a subdirectory of my hosting account, and developed a site for a client at http://www.mysite.com/wpmu/clientname . I didn't realize until later that in order to map the client's existing domain name to my hosting, I would need a subdomain install of WPMU - in other words, the site would need to be at clientname.mysite.com . So, I left my wpmu folder in the same place (~/wpmu on my hosting), configured my domain to route clientname.mysite.com to ~/wpmu, and followed this tutorial. Now, when I visit clientname.mysite.com, the front page is as I expect it to be. The problem is, when I follow any of the internal links on the page, I get a 500 error:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    ...

    I have a feeling that not hosting WPMU in the root of the hosting is the problem. I really don't want to put WPMU in the root of the host, though, because other clients have their websites served from there, and I feel like that could cause issues.

    Does anybody know what I should do? I am in a slight panic over this...

    Thanks in advance!

  2. andrea_r
    Moderator
    Posted 16 years ago #

    you should undo what you did, and you should get a domain mapping plugin that will work with subfolder installs. (the ones that do are paid ones)

  3. seb_m
    Member
    Posted 16 years ago #

    Would your one (the one at wpmututorials) be what I'm looking for? I considered it earlier, but I wasn't totally sure it'd do what I wanted.

  4. andrea_r
    Moderator
    Posted 16 years ago #

    Yep, it does. I can dig up some links if you need to see them in action.

  5. seb_m
    Member
    Posted 16 years ago #

    Yes please, I'd appreciate that. It'd be great to see it at work.

  6. seb_m
    Member
    Posted 16 years ago #

    Andrea, I purchased your plugin last night and installed it this morning. You said it would work with my setup, but I'm getting an error: "Domain mapping only works when WPMU is installed in the root of the website." Any advice?

  7. wpmuguru
    Member
    Posted 16 years ago #

    "I have a feeling that not hosting WPMU in the root of the hosting is the problem."

    That's correct - it is part of the problem. If your rewrite base is not / then MU will not handle a blog domain mapped to somedomain.com/.

    Since you're working with my plugin, drop me an email via the contact form at either wpmututorials.com or ronandandrea.com.

  8. seb_m
    Member
    Posted 16 years ago #

    Okay - I've sent an email using the contact form on wpmututorials.com

  9. seb_m
    Member
    Posted 16 years ago #

    Just in case, I've sent another email, this time using the ronandandrea.com contact form. Thanks.

  10. andrea_r
    Moderator
    Posted 16 years ago #

    Good plan, cuz I never got the first one. :(

    Also, my mistake. Sorry! None of the domain mapping plugins work when MU is installed in a subfolder.

  11. seb_m
    Member
    Posted 16 years ago #

    Looks like I'll have to investigate an alternative hosting option! Oh well...

  12. seb_m
    Member
    Posted 16 years ago #

    Alright, I've cracked this mystery.

    If you want to use the domain mapping plugin, and your WPMU folder is not in the hosting root, you have to point another domain name at the WPMU folder, so that WPMU is serving from the root of this new domain name. Change the relevant settings in the database tables to match what the new URLs of your blogs will be (there is a tutorial in the Codex about this), and you'll be good to go from there.

    Your plugin was a lifesaver. Thanks!

About this Topic