The MU forums have moved to WordPress.org

Blogs in Subdomains & Shared Hosting (8 posts)

  1. Marlinspike
    Member
    Posted 14 years ago #

    Hello,

    Apologies in advance if this has been done to death, but I could not work out a solution from what I have read in the forums.

    I have a shared hosting account with unlimited number of subdomains. I have mod_rewrite running, and .htaccess control over Apache (cannot edit httpd.conf).

    Is it possible to run the subdomain-style of blogs? I have tried several things but cannot get it to work, I just get sent to the main page whenver I try to create an additional blog.

    I have used the htaccess.dist file provided and copied it so it's called .htaccess. I can setup redirects, including wild-card ones, through CPanel on my hosting account, but haven't worked out exactly how to do this.

    Does anyone have a simple step-by-step guide to doing this for people who cannot modify httpd.conf? Is it, indeed, possible?

    I am using WordPress MU latest version (2.8.5.2) and latest version of BuddyPress.

    Thanks in advance for your help,
    Stephen

  2. DeannaS
    Member
    Posted 14 years ago #

    If you just create a *.yourdomain subdomain, it should work without modifying any other files (htaccess or otherwise) - if you set it up to use subdomains.

    But, um, the latest version of wpmu is 2.8.5.2 - so you're a little behind.

  3. Marlinspike
    Member
    Posted 14 years ago #

    Hi Deanna, thanks for the reply...

    Doh yes I do have 2.8.5.2 - I downloaded the latest from the site a few days ago. I was just choosing the latest in the dropdown offered!

    I guess where I'm confused is, the redirect on CPanel offers me:

    Type: Permanent(301) / Temporary(302) (I choose permanent)
    http://(www.)?mydomain.tld/<folder&gt;
    redirects to <path>

    with a checkbox for wild-card redirect.

    As this doesn't seem to allow for subdomain redirection, I guess I'm stuffed? I can only see some kind of infinite loop forming...

  4. Marlinspike
    Member
    Posted 14 years ago #

    PS I can create a redirection for a subdomain manually, but obviously I'd like it to be an automatic redirect of any subdomain...

  5. DeannaS
    Member
    Posted 14 years ago #

    Hm... WPMU doesn't use (and doesn't like) the www. I've not set up a wildcard subdomain via cpanel, as my host's cpanel doesn't have that option. I've had them set it up manually. Perhaps talk to your hosting provider? You don't want mydomain.com redirecting to http://www.mydomain.com. That will most definitely cause an infinite loop with wpmu.

  6. andrea_r
    Moderator
    Posted 14 years ago #

    Don't go in the redirects menu. That's not it.

    "Does anyone have a simple step-by-step guide to doing this for people who cannot modify httpd.conf? Is it, indeed, possible?"

    If you cannot modify that file, and your host WON'T, they either did it already or you won't be able to use subdomains.

    Ask your host first. They might be able to set it up.

  7. summae
    Member
    Posted 14 years ago #

    I simply asked tech support for my hosting provider, and they knew what I was talking about and did it on their end within an hour.

  8. justinkomhyr
    Member
    Posted 14 years ago #

    You need to ask the techs at the shared hosting provider to add a server alias to your main domain that wpmu is running under. It should be *.domain neame. Then they also have to edit the dns entry to ad a new entry * set as A.

About this Topic

  • Started 14 years ago by Marlinspike
  • Latest reply from justinkomhyr