![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
| Here is what I tried in a .htaccess file in my virtual host's document root: RewriteCond {SCRIPT_FILENAME} !^membersignin$ [NC] RewriteCond {HTTP_HOST} ^([^\.]+)\.mydomainname\.com [NC] RewriteRule ^(.*)$ http://mydomainname.com/membersignin/?userid=%1 [R=301,QSA,NC,L] This works great for: http://www.mydomainname.com/ which is rewritten to: http://mydomainname.com/membersignin/?userid=www But; http://dhhoyle.mydomainname.com/ gets a Page Load Error, looking for dhhoyle.mydomainname.com. That is, no rewrite took place! This is my first attempt at using mod_rewrite. Any help would be appreciated. Thanks, Danny |
| |||
| "Danny" <dhhoyle@gmail.com> wrote in message news:eae46939-4bb4-448f-aeef-3499b5cae920@59g2000hsb.googlegroups.com... > Here is what I tried in a .htaccess file in my virtual host's document > root: > > RewriteCond {SCRIPT_FILENAME} !^membersignin$ [NC] > RewriteCond {HTTP_HOST} ^([^\.]+)\.mydomainname\.com [NC] > RewriteRule ^(.*)$ http://mydomainname.com/membersignin/?userid=%1 > [R=301,QSA,NC,L] > > This works great for: > > http://www.mydomainname.com/ > > which is rewritten to: > > http://mydomainname.com/membersignin/?userid=www > > But; > > http://dhhoyle.mydomainname.com/ > > gets a Page Load Error, looking for dhhoyle.mydomainname.com. > That would suggest that either: you don't have DNS for *.mydomainname.com or your virtual host entry doesn't contain ServerAlias *.mydomainname.com |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |