[users@httpd] Env set by RewriteRule not available in SSI Document

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to set an environment variable with a RewriteRule for later use in 
a SSI document using this directive in a .htaccess file (the full file is 
attached below):

RewriteRule ^(.+)\.html$ index.shtml [E=TEST:$1,L]

Alltough the rewritelog file says "setting env variable 'TEST' to 'org
anisation'" the statement in the index.shtml file <!--#echo var="TEST" --> 
prints "(none)".

Funny is, that if I change the RewriteRule to 

RewriteRule ^(.+)\.shtml$ index.shtml [E=TEST:$1,L]

and call the URL with the shtml extension the variable is set.


A variable set directly using SetEnv is available in the SSI document in any 
case.

Adding .html to the INCLUDE output filter doesn't change anything.


Any help would be greatly appreciated!
David

The complete .htaccess file:
================
Options +IncludesNOEXEC
AddOutputFilter INCLUDES .shtml

AddType text/html .shtml

DirectoryIndex index.html

Options +FollowSymLinks
RewriteEngine On

RewriteRule ^(.+)\.html$ index.shtml [E=TEST:$1,L]

SetEnv PAGE TEST_2

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux