|
|
|
| Is there a tool or a method to help debug mod_rewrite?
My immediate problem is that given
RewriteRule ^(.*)2z$ $0.jpg [L]
and http://example.org/3z.2z
I get "The requested URL /3z.2z.jpg was not found on this server."
I would expect to get /3z..jpg
--
Sig
(add three to my address to avoid spam filter)
| |
|
|
|
| On 19 Sep 2005 01:49:29 GMT, John Bokma <john@castleamber.com> wrote:
>caff987@logsin.org (Sig) wrote:
>
> ^
> $1?
It was the $0. Thank you.
(A tool, if there is one, would still be nice.)
--
Sig
(add three to my address to avoid spam filter)
| |
| Brian Wakem 2005-09-19, 7:20 am |
| Sig wrote:
> On 19 Sep 2005 01:49:29 GMT, John Bokma <john@castleamber.com> wrote:
>
>
> It was the $0. Thank you.
>
> (A tool, if there is one, would still be nice.)
Given that the regular regular expressions are largely PERL compatible, you
could easy test it with Perl.
$ PERL -e '$uri = "3z.2z"; $uri =~ s!^(.*)2z$!$1.jpg!; print "$uri\n";'
3z..jpg
--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |