Re: [EMAIL PROTECTED] Mod_rewrite and default document

2006-09-14 Thread Ace Suares
> > *sigh*. Do we really need the condescending tone? Especially since > your example doesn't work either Mr. Expert. I am sorry if I have offended you. I stand corrected. Apparently, the query string is a special case in mod_rewrite. Cheers, ace -- maven n : someone who is dazzlingly skilled

Re: [EMAIL PROTECTED] Mod_rewrite and default document

2006-09-14 Thread Joshua Slive
On 9/13/06, Erik Funkenbusch <[EMAIL PROTECTED]> wrote: > > 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 conde

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-13 Thread Ace Suares
> > http://mydomain/?id=abc123 > http://mydomain?id=abc123 > > get automatically mapped to > > http://mydomain/index.php?id=abc123 > > I can't change that those URL's exist already, so I have to be able to > handle them when they come in. But I want to also handle: > > http://mydomain/abc123 as ht

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 will

Re: [EMAIL PROTECTED] Mod_rewrite and default document

2006-09-11 Thread Bob Ionescu
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 will never work, because the first one will match once

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=12

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 i

Re: [EMAIL PROTECTED] Mod_rewrite and default document

2006-09-08 Thread Bob Ionescu
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 default document and a query string? Thanks. Use Rew

[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