The MU forums have moved to WordPress.org

Subdomain Root Issue (7 posts)

  1. DHewes
    Member
    Posted 16 years ago #

    This is my first WP install, so probably a stupid question... My site is an existing site that I wanted to add WP Blogs to as subdomains. I created a subdirectory named wp (/path/to/home/directory/public_html/wp) and uploaded everything there and ran the install setting to subdomain mode. If I go to http://domain.com/wp I get the main WP Mu as expected. I can create blogs on subdomains, but they all go to http://subdomain.domain.com/wp/. I have tried to edit these blogs to eliminate the "/wp/" portion. I would like these blogs to all be at the root of the subdomain, ie, http://subdomain.domain.com/. Is this possible, and if so, what am I missing? Thanks!

  2. t3ch33
    Member
    Posted 16 years ago #

    have you tried a rewrite that will change subdomain.domain.com/wp/ to subdomain.domain.com

  3. andrea_r
    Moderator
    Posted 16 years ago #

    Install it in the root.

  4. DHewes
    Member
    Posted 16 years ago #

    If I install it in the root will it not overwrite what I have in the root (which I do NOT want to change)?

  5. steveoc
    Member
    Posted 16 years ago #

    I was unable to install my wpmu in the root for various reasons. I wanted visitors to be able to to type in subdomain.domain.com to get to their blog rather than subdomain.domain.com/blog, so I wrote a redirect that allows them to do so then it redirects them to subdomain.domain.com/blog.

    It may not be perfect for your circumstances, but it works for me. I posted the information here:

    http://mu.wordpress.org/forums/topic.php?id=7127&page&replies=3

  6. DHewes
    Member
    Posted 16 years ago #

    Steve - I appreciate the help. After re-installing a few times and trying different things here is my conclusion:

    1) I cannot install in the root. First, I have an index.php but more importantly my ISP's version of CPanel continually overwrites the .htaccess file. WP is NOT my main site, it is a relatively minor add-on for me - so it needs to go in a subdirectory.

    2) You universal rewrite in the other post is great if someone was running an open WP Mu site with numerous blogs on subdomains. I tested it and what I realized very quickly is that is a person went to http://anything.domain.com, assuming anything wasn't an existing blog, they end up at the main WP Mu page. In my case, since I do not have open registration and a limited number of blogs, this is not a desired result.

    3) I did use your ealier "single domain" solution, which is what I ended up going with. This is still not ideal though. I installed WP Mu in the .../public_html/wp/ folder. When I create a subdomain in WP and a user now goes to http://blog.domain.com they are instantly taken to http://blog.domain.com/wp/. While this works, my "ideal" solution would be to have the blog appear at the root of the domain, not a subfolder.

    While the solution works, and again I appreciate it, I am most likely going to roll back to real subdomains and multiple installs of WP (not WP Mu). This was a better solution for my needs.

  7. andrea_r
    Moderator
    Posted 16 years ago #

    If you're just looking for a few blogs, and reall ywant limited option, them multiple WP installs are better.

    MU is really mostly for stand-alone sites looking to set up a blog farm. You *can* get it to do other things, but it's work.

About this Topic