Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using th E= Flag in the RewriteRule

Status
Not open for further replies.

calvinmicklefinger

Technical User
Jan 12, 2005
1
US
I am trying to use

ReWriteRule ^([A-Za-z]+)$ $1.shtml [E=MY_VAR:$1,L]

to set a custom environment variable that the SSI includes can use in my HTML page as

<!--#echo var="MY_VAR" -->

The Env or E variable MY_VAR is not being passed and although the Apache documentation seems to say it will, I can't get it to work or find out how.

Can anyone help.

Many Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top