Subdomains and WordPress MU

Discussion in 'Apache' started by AHA7, Sep 27, 2007.

  1. #1
    Hello,

    I have WordPress MU installed on my main domain directory (ex: blogs.com) and it uses wildcard DNS to catch all subdomains on blogs.com.

    My problem is that I want to have some subdomains redirect (using MOD_REWRITE) to a custom script on my site and not handled by the WordPress MU script.

    Ex: I want the subdomains "me./profile./images./gallery./shop./games.blogs.com" to be redirected (mod_rewritten) to "blogs.com/custom/(me/profile/images/gallery/shop/games)".
    So "games.blogs.com?id=100" would redirect to "blogs.com/custom/games/?id=100" and so on...
    And all other subdomains (except the ones above) should be handled by the WordPress MU script as normal.

    How can I do this?
    Would .htaccess help with this? How?

    Please give me some details as I am not experienced with DNS/.htaccess issues.
     
    AHA7, Sep 27, 2007 IP