Re: [users@httpd] RewriteMap substitutions in RewriteRule

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

 



OK, i got my script looping on STDIN, but now I have a problem with
backreferences to the RewriteCond. My condition is this...

RewriteCond %{QUERY_STRING} ^pdfId\=\d+$

.. but thanks to Noah <sitz@xxxxxxxxxxxx> and the manual, i found that
If I want to use %1 to reference the id being passed then I need to
have the CondPattern in parenthesis. Which I'm assuming would be
something like this ....

RewriteCond %{QUERY_STRING} ="pdfId=13"

.. but I don't always know what the pdfId will be. I want that pdfId,
whatever it is, to be passed to the rewritemap to be figured out. How
do i store a regex value in %1 so I can use it later in my
rewriterule/rewritemap combo ? ...

RewriteRule ^/test\.php$ /pdf/${fileName:%1}? [R,L,T=application/pdf]

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