The MU forums have moved to

Normal subdomain in other directory root (3 posts)

  1. Mattz
    Posted 16 years ago #

    Because I need to use a seperate apache subdomain for some other script, I have added a subdomain to the website I run.

    Because this subdomain has his own directory-root I have a problem at the moment.

    So I have and in the same folder where each directory is the directoy for it's domain.

    I was figuring out the following in .htaccess on both rootdirs, but this doesn't seem to work:

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

    Should it be possible this way ? Because loading the config for that subdomain earlier than the domainname does not make any difference.

  2. Mattz
    Posted 16 years ago #

    What I actually don't get is that I found a post of andrea_r yesterday who also said that if the subdomain httpd.conf is loaded before the actual domainname httpd.conf it should be working without the htaccess rule.

    Strange that it doesn't because I thought the same actually.

  3. Mattz
    Posted 16 years ago #

    This is solved by some htaccess magic that took the subdomain out of an endless loop.

    Strange because it was a real subdomain issue, not WPMU related.

About this Topic