I have the following .htaccess on an Apache / 2.4.2-win32 server:
# Turn mod_rewrite on RewriteEngine On # Allow direct loading of files in the static directory RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^/?static/(.+)$ - [L] # Send all other requests to controller RewriteCond ${REQUEST_URI} !^/?(spf/index\.php)?$ RewriteRule .* spf/index.php [L,QSA]
It works well and does exactly what I want. For those of you who cannot worry about what he is doing, he sends all requests through spf/index.php if they are not for a file that exists in the static directory.
The file is located in the documentroot virtual host.
Each request that gets through this .htaccess generates the following error:
[Wed Aug 01 14:14:16.549835 2012] [core:warn] [pid 7100:tid 1076] AH00111: Config variable ${REQUEST_URI} is not defined
In fact, this does not cause a problem - each request works as expected, but it fills my error log, and I do not like it.
According to Google , no one has had this error before. That, as far as I got with debugging, I really don't know where to go next.
Has anyone understood what is going on here?
PS I know that this may be a question more suitable for SF, if the general opinion is that it does not belong here, I will translate it.
Daverandom
source share