The MU forums have moved to WordPress.org

wpmu htaccess who to set it up to ignore a subdomain (3 posts)

  1. masmasmous
    Member
    Posted 14 years ago #

    helllo i need to exclude some subdomqins qnd folders from my MU instalation the big problem is that i cant find the rewrite con. for the www on my .htaccess so i am stuck some folks told me i need to

    " add the following setting accordingly after www rewrite rule.

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

    where your folder path:
    public_html/subdomain/
    "

    here how my file looks like now

    "RewriteEngine On
    RewriteBase /

    RewriteCond %{HTTP_HOST} video.chachia.net
    RewriteCond %{REQUEST_URI} !video/
    RewriteRule ^(.*)$ video/$1 [L]

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    "

    please tell me what is wrong

  2. tdjcbe
    Member
    Posted 14 years ago #

    Does the video subdomain sit as a subdirectory under your webroot?

  3. andrea_r
    Moderator
    Posted 14 years ago #

    Just add it after all the other then.

    Also, under site Admin -> Option there's a field there for disallowed blog names. fill in your other subdomains there too.

About this Topic

  • Started 14 years ago by masmasmous
  • Latest reply from andrea_r