Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2005, 06:24 PM
vacklin vacklin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 17 vacklin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m 55 sec
Reputation Power: 0
.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

Reply With Quote
  #2  
Old February 10th, 2005, 01:51 AM
vacklin vacklin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 17 vacklin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m 55 sec
Reputation Power: 0
Nevermind! I found the answer. I need to add:

RewriteRule ^.*$ northeastdallas/ [L] without the $1 to make this work.

Thanks anyway!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > .htaccess help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway