Re: [EMAIL PROTECTED] Mod_rewrite and default document

2006-09-13 Thread Erik Funkenbusch
See my problem? I have to match a root page request with a query string of ?id=[anything] There's an excellent book about regular expressions from O'Reilly. Spend a weekend with it, really. *sigh*. Do we really need the condescending tone? Especially since your example doesn't work either

Re: [EMAIL PROTECTED] Mod_rewrite and default document

2006-09-11 Thread Erik Funkenbusch
On 9/11/06, Bob Ionescu [EMAIL PROTECTED] wrote: Erik Funkenbusch wrote: # 1 rewrite /?id=123 as index.php?id=123 - Does not work It is intended *not* to match in this case - and if you are using numerical values, why are you using the regEx .* which matches too much, your second rule

Re: [EMAIL PROTECTED] Mod_rewrite and default document

2006-09-10 Thread Erik Funkenbusch
On 9/9/06, Erik Funkenbusch [EMAIL PROTECTED] wrote: On 9/8/06, Bob Ionescu [EMAIL PROTECTED] wrote: Erik Funkenbusch wrote: RewriteRule !^index\.php.* - [C] RewriteRule ^(.*) index.php?id=$1 [L] However, this doesn't work with the original form: http://domain/?id=123 Can anyone

Re: [EMAIL PROTECTED] Mod_rewrite and default document

2006-09-09 Thread Erik Funkenbusch
On 9/8/06, Bob Ionescu [EMAIL PROTECTED] wrote: Erik Funkenbusch wrote: RewriteRule !^index\.php.* - [C] RewriteRule ^(.*) index.php?id=$1 [L] However, this doesn't work with the original form: http://domain/?id=123 Can anyone offer any suggestions on making this work with the implied

[EMAIL PROTECTED] Mod_rewrite and default document

2006-09-08 Thread Erik Funkenbusch
I've been banging my head on this for a while and can't seem to come up with a solution that works. Unfortunately, due to pre-exsting url's that I can't break, I need to support the old format, which uses this kind of URL: http://domain/?id=123 This uses the default document passthrough, which