Hello all,
First let me say I really didn't know where to post my question since it's about .htaccess. I apoligize in advance and hope someone will move this post to the right spot.
I have a lot of subdomains and I have a .htaccess file setup to point each subdomain to it's correct folder. This is working fine except with one subdomain. The subdomain in question is very simular to another in the site so instead of sending to the correct folder. It sends to the simular one instead.
Here's the subdomain names where the problem is:
My .htaccess file clearly points the subdomain to it's correct folder but no matter what I do the subdomain will only point to
Here's what I am using in my .htaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} northeastdallas.domain.com
RewriteCond %{REQUEST_URI} !northeastdallas/
RewriteRule ^$ northeastdallas/$1 [L]
and for the other it's the same:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} eastdallas.domain.com
RewriteCond %{REQUEST_URI} !eastdallas/
RewriteRule ^$ eastdallas/$1 [L]
I would appreciate some help because I have tried everything I can think of and searched the Internet for an answer. I even tried adding this:
RewriteRule ^(.*)$ northeastdallas/$1 [L]
but I understand that the * makes it a wildcard so this doesn't work either.
Thank for your help!
Vickie
First let me say I really didn't know where to post my question since it's about .htaccess. I apoligize in advance and hope someone will move this post to the right spot.
I have a lot of subdomains and I have a .htaccess file setup to point each subdomain to it's correct folder. This is working fine except with one subdomain. The subdomain in question is very simular to another in the site so instead of sending to the correct folder. It sends to the simular one instead.
Here's the subdomain names where the problem is:
My .htaccess file clearly points the subdomain to it's correct folder but no matter what I do the subdomain will only point to
Here's what I am using in my .htaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} northeastdallas.domain.com
RewriteCond %{REQUEST_URI} !northeastdallas/
RewriteRule ^$ northeastdallas/$1 [L]
and for the other it's the same:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} eastdallas.domain.com
RewriteCond %{REQUEST_URI} !eastdallas/
RewriteRule ^$ eastdallas/$1 [L]
I would appreciate some help because I have tried everything I can think of and searched the Internet for an answer. I even tried adding this:
RewriteRule ^(.*)$ northeastdallas/$1 [L]
but I understand that the * makes it a wildcard so this doesn't work either.
Thank for your help!
Vickie