Re: [users@httpd] Mod-rewrite not finding text that is found by regex test site.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28 Jun 2006 at 15:35, Joshua Slive wrote:

> Then it is unlikely this is a PCRE issue.  I really don't know what
> the problem here is, although I'd suggest posting the whole RewriteLog with
> loglevel 9 for a request, just for interest sake.

I got it figured out.  It looks like mod_rewrite is very picky about the 
use of the caret (^) and dollar ($) at the beginning and end of strings.  
I removed them and it now works regardless of what rewrite precedes the 
problem statement:

RewriteCond  $1    /cgi-sys/cgiwrap/guille/wiki.pl/([A-Z])(.*)
RewriteRule ^(.*)$ /cgi-sys/cgiwrap/guille/wiki.pl/${lc:%1}%2        [NS]

RewriteCond  $1    /cgi-sys/cgiwrap/guille/wiki.pl/(.*)([a-z])([A-Z])(.*) 
RewriteRule ^(.*)$ /cgi-sys/cgiwrap/guille/wiki.pl/%1%2_${lc:%3}%4 [N,NS]


Thanks for your help - even though you didn't pin down the problem, I was 
able to start testing new things based on your hints.  I'd still be lost 
otherwise.

Mike


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux