Forums

The WordPress MU forums have moved to the MultiSite forum on WordPress.org

Subdomain homepage mod_rewrite (2 posts)

  1. chrisclements
    Member
    Posted 2 years ago #

    I installed Wordpress MU in a subdirectory and each blog gets its own subdomain. Here is what I am wanting to do. I am setting up a blog for each state, so there is onlu 50 blogs total that are going to be hosted on the site.

    arizona.mysite.com
    arkansas.mysite.com
    etc.

    I installed wordpress mu in the /blog directory.

    so each blog is arizona.mysite.com/blog to get to the main page of each blog.

    However, each state has a unique index page that I want to display if someone goes to ex. just arizona.mysite.com or arkanasas.mysite.com.

    I have tried adding an htaccess file to my website httpdocs folder

    RewriteEngine on
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteCond %{HTTP_HOST} ^(?!www\.)([^\.]+)\.
    RewriteCond %{DOCUMENT_ROOT}/%1 -d
    RewriteRule .* /%1/index.php [L]

    this works to rewrite the main subdomain, but it messes up my wordpress mu install. I think it is conflicting with the htaccess in the wordpress mu folder. any suggestions would be helpful.

  2. VentureMaker
    Member
    Posted 2 years ago #

    However, each state has a unique index page that I want to display if someone goes to ex. just arizona.mysite.com or arkanasas.mysite.com.

    Use different themes for sub-blogs.

Topic Closed

This topic has been closed to new replies.

About this Topic