right now i have the folloring condition RewriteCond %{HTTP_HOST} ^(site.com¦www.site.com¦http://www.site.com¦http://site.com)$ [NC]
i'm pretty sure this is too much and that i only need one of these, but i can't test or someone might not be redirected WHICH ONE DO I NEED? site.com, www.site.com, [site.com,...] or [site.com?...]
thanks
gergoe
3:46 pm on May 9, 2004 (gmt 0)
use (www\.)?site\.com, so it will match site.com and www.site.com also
WhosAWhata
1:36 am on May 12, 2004 (gmt 0)
so i don't need to worry about the http://?
jdMorgan
3:09 am on May 12, 2004 (gmt 0)
No, http:// will not appear in the HTTP_HOST variable. It will appear in HTTP_REFERER, but not in the host name.