|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
.htaccess help
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: http://eastdallas.domain.com http://northeastdallas.domain.com My .htaccess file clearly points the http://northeastdallas.domain.com subdomain to it's correct folder but no matter what I do the subdomain will only point to http://eastdallas.domain.com 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 |
|
#2
|
|||
|
|||
|
Nevermind! I found the answer. I need to add:
RewriteRule ^.*$ northeastdallas/ [L] without the $1 to make this work. Thanks anyway! |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > .htaccess help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|