httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martijn <sweetwaterg...@googlemail.com>
Subject Re: [users@httpd] Mod_Rewrite from old dynamic page
Date Wed, 14 Nov 2007 17:23:37 GMT
On Nov 14, 2007 5:03 PM, Ki Song <ki@knifecenter.com> wrote:
> > Try this instead:
> >
> >   RewriteCond %{QUERY_STRING} ^([^,]*) [NC]
> >
> > If it still does not work, bump the RewriteLogLevel to 9 and look for answers
> > in the log file.
>
> I tried that code and it didn't work.

Did you turn on logging, as suggested? It works fine with me: it
matches the full query string until the first comma occurs. So it'd be
interesting to see what your Rewrite log says.

> I saw that there may be some typos, so I tried the following:
>
> RewriteCond %{QUERY_STRING} ^([^,$]*)$ [NC]

That's bound not to work. A $ in a regular expression means the end of
the string.

Martijn.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message