|  Topic awaiting preservation: An Apache URL Rewriting Challenge (Page 1 of 1)  | |
|---|---|
| Nervous Wreck (II) Inmate From: Sunnyvale, California (USA) |  posted 03-28-2004 05:25 Today is the first day of my short spring break, so it is time to turn my attention back to unfinished books and unfinished software development projects. Here is something I thought of long ago: | 
| Bipolar (III) Inmate From: Victoria, BC |  posted 03-28-2004 09:05 Brian: code: RewriteEngine on 
 | 
| Nervous Wreck (II) Inmate From: Sunnyvale, California (USA) |  posted 03-30-2004 07:44 Thank you for the suggestion.  Is the [^/]* bit because the leading slash may or may not be supplied by the server?  If that is the case, shouldn't the quantifier be a question mark instead of an asterisk to denote zero or one rather than zero or any greater quantity? code: RewriteCond %{HTTP_HOST} ^(www\.)?domain\.tld$ [NC]
 | 
| Nervous Wreck (II) Inmate From: Sunnyvale, California (USA) |  posted 03-30-2004 08:23 I believe I have found the solution: code: RewriteCond %{HTTP_HOST} ^(www\.)?domain\.tld$ [NC]
 code: <IfModule mod_rewrite.c> 
 | 
| Bipolar (III) Inmate From: Victoria, BC |  posted 04-01-2004 22:14 I'm glad you've figured it out... I kinda missed the meat of the problem   |