The MU forums have moved to WordPress.org

How to Add subdomain to existing directory-based blog? (5 posts)

  1. jubi
    Member
    Posted 16 years ago #

    As in topic - what should I put in .htaccess to direct subdomain created manually to direct into newly created blog in directory install of wp-mu?

  2. drmiketemp
    Member
    Posted 16 years ago #

    We're pointing a previously created subdomain on your site to a newly created blog within a subdirectory install of mu?

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^subdomain.mydomain.tld$ [OR]
    RewriteCond %{HTTP_HOST} ^www.subdomain.mydomain.tld$
    RewriteRule ^(.*)$ http://mydomain.tld/mynewuser/$1 [R=301,L]
  3. drmiketemp
    Member
    Posted 16 years ago #

    Should be that. I've never been good with rewrite rules.

  4. jubi
    Member
    Posted 16 years ago #

    Thanks, I'll try it

  5. drmiketemp
    Member
    Posted 16 years ago #

    By the way, did I get right? Love some feedback. I really really hate doing rewrite rules cuz I really do suck at them.

About this Topic