The MU forums have moved to WordPress.org

Use a subdomain for another thing than a blog (4 posts)

  1. Mat_
    Member
    Posted 15 years ago #

    Hi all!

    I search the forum to use a subdomain for something like a wiki or a forum.

    And i found that, and pasted it on my .htaccess:

    RewriteCond %{HTTP_HOST} thesub.domain.com
    RewriteCond %{REQUEST_URI} !thesub/
    RewriteRule ^(.*) thesub/$1 [L]

    it's working for the thesub.domain.com but not for the pages after (like thesub.domain.com/page.php or image.png )

    i'm not used to work with .htaccess so any tip would be great.

    Thanks a lot !!!

  2. cafespain
    Member
    Posted 15 years ago #

    Wow, what a lot of work for a simple task...
    Though, I don't know a lot about your set up so it might not be.
    I just setup a new Vhost on my webserver to serve the sub-domain I want separate, and tell it the directory to serve the site from and then install the forum/other app there.

  3. lunabyte
    Member
    Posted 15 years ago #

    As long as that subdomain's vhost comes before the main vhost (that contains the wildcard server alias), no need for rewrites and such.

  4. Mat_
    Member
    Posted 15 years ago #

    So, i there a way to add a rule ?

About this Topic