Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get URL and parameters with SSI

I have to get URL and parameters with SSI (only with SSI), but I can't find any solution.

For example: http://www.test.com/abc.html?data=something

And I have to get value of parameter "data".

like image 647
mesnicka Avatar asked Sep 17 '10 06:09

mesnicka


1 Answers

<!-- set default value for SSI variable "data" -->    
<!--#set var="data" value="" -->

<!-- get "data" value from URL --> 
<!--#if expr="$QUERY_STRING = /data=([a-zA-Z0-9]+)/" -->
<!--#set var="data" value="$1" -->
<!--#endif -->

<!-- print the "data" value -->     
<!--#echo var="data" -->
like image 172
ahgood Avatar answered Sep 30 '22 13:09

ahgood