So I can clearly do this:
RewriteCond %{REQUEST_FILENAME}\.php -f
But I cannot do this:
RewriteCond some_directory/%{REQUEST_FILENAME}\.php -f
Furthermore, this also fails:
RewriteCond prefix%{REQUEST_FILENAME} -f
Presuming of course those files exist in the directory (duh!). Apparently, I can't prepend literal strings to TestStrings in RewriteCond stanzas in Apache 2.4
Anyone know how to do this? Thanks.
Note: Prepending string literals is done in the same way as appending. I had misattributed the problem as a limitation of the syntax. The truth was that "REQUEST_FILENAME" expanded to the full unix path, not the HTTP requested path, as I had originally thought.
tl;dr There is no special syntax provision for prefixing string literals; they work the same way they do in shell scripting, prefix%{variable}postfix
is valid syntax.
Thanks for your time.