![]() Topic awaiting preservation: An Apache URL Rewriting Challenge (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Sunnyvale, California (USA) |
![]() 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 |
![]() Brian: code: RewriteEngine on
|
Nervous Wreck (II) Inmate From: Sunnyvale, California (USA) |
![]() 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) |
![]() 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 |
![]() I'm glad you've figured it out... I kinda missed the meat of the problem |