Currently in .htaccess
, the index.php
rewrite is:
RewriteRule ^ index.php [L]
This rewrite has worked well, but with one issue. It changes the %{REQUEST_URI}
variable to "index.php", making it subsequently impossible to use Apache directives that rely on the %{REQUEST_URI}
variable, either in the core httpd configuration or later in the .htaccess
file.
For example, the following directive would fail to set the WIDGET
variable to true
if if a request was made for "/widget":
RewriteCond %{REQUEST_URI} (/widget)
RewriteRule ^ - [ENV=WIDGET:true]
The proposed resolution is to change the index.php
rewrite directive to be:
RewriteRule ^(.*)$ index.php/$1 [L]
This leaves the requested path in %{REQUEST_URI}
, where it can be used in subsequent directives.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.