Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8316707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:25:15+00:00 2026-06-08T21:25:15+00:00

I have the following .htaccess on an Apache/2.4.2-win32 server: # Turn mod_rewrite on RewriteEngine

  • 0

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]

This works well and does exactly what I want it to. For those of you who can’t be bothered working out what it does, it sends all requests through spf/index.php unless they are for a file that exists in the static directory.

The file resides in the virtual host’s documentroot.

Every request that falls 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

This is not actually causing a problem – every request works as expected – but it’s filling up my error log and I don’t like it.

According to Google, no-one has ever had this error before. That’s as far as I’ve got with debugging it, I don’t really know where to go next.

Anyone got any idea what’s going on here?

P.S. I’m aware this might be a question better suited to SF, if the general opinion is that it doesn’t belong here I’ll move it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:25:17+00:00Added an answer on June 8, 2026 at 9:25 pm

    You need to replace the $ with a %:

    RewriteCond ${REQUEST_URI} !^/?(spf/index\.php)?$
    

    to

    RewriteCond %{REQUEST_URI} !^/?(spf/index\.php)?$
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following .htaccess file in a directory: RewriteEngine On RewriteCond %{HTTPS} !=on
HI, Given the following apache/mod_rewrite rule taken from .htaccess within minify directory on the
i have following .htaccess RewriteEngine On DirectoryIndex index.php RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)/([^/]+)?$ index\.php?page=$1&s=$2&o=$3 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)?$
I have the following .htaccess config RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^example.com [NC]
I have the following in a .htaccess file as a test: RewriteEngine on RewriteRule
First of all, I have following directory structure: /project_directory/rewriting_experimentation_directory htaccess File realfile.txt What I
I have an Apache .htaccess file in the parent directory to directory this .htaccess
I have a directory on server, from which I only want .JPG files to
I have the following in my .htaccess Options +FollowSymLinks RewriteEngine on RewriteRule ^([a-zA-Z0-9\-]+)?$ index.php?url=$1/
i have a strange apache mod_rewrite problem. I need to hide a sub-directory from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.