I'm using the following .htaccess file:
- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ivan.domain.info [NC]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^$ /blog/ [QSA,L]
RewriteCond %{HTTP_HOST} forum.domain.info [NC]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^$ /forum/ [QSA,L]
I'm doing something wrong, because I get error 500 when trying accessing the second subdomain.
I tried replacing the second block with a single rule:
- Code: Select all
RewriteRule ^forum.domain.info$ /forum/ [QSA,L]
but I'm still getting a 500.
What am I doing wrong?