>
> *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
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
> 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
>
> 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
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
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
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
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
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
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
10 matches
Mail list logo