Re: [users@httpd] RewriteCond: backreferences in TestString

2016-08-31 Thread Alexey Vlasov
On Fri, Aug 19, 2016 at 10:54:51AM -0400, Eric Covener wrote: > > something like this: > > RewriteCond /patch/ver(70) -f > > RewriteRule ^([^?]*)\.php(.*)$ http://127.0.0.1:100%1%{REQUEST_URI} [NC,L,P] > > That's valid, but it doesn't exactly match the subject of the email > (which would not

Re: [users@httpd] RewriteCond: backreferences in TestString

2016-08-19 Thread Eric Covener
> something like this: > RewriteCond /patch/ver(70) -f > RewriteRule ^([^?]*)\.php(.*)$ http://127.0.0.1:100%1%{REQUEST_URI} [NC,L,P] That's valid, but it doesn't exactly match the subject of the email (which would not work) -- Eric Covener cove...@gmail.com

[users@httpd] RewriteCond: backreferences in TestString

2016-08-19 Thread Alexey Vlasov
Hi, I oo dynamically switch PHP versions but it turns out too many rules. Can it somehow easier? ## PHP 5.2 RewriteCond /patch/ver52 -f RewriteRule ^([^?]*)\.php(.*)$ http://127.0.0.1:10052%{REQUEST_URI} [NC,L,P] ... ## PHP 5.6 RewriteCond /patch/ver56 -f RewriteRule ^([^?]*)\.php(.*)$