S
S
Sergey2015-01-19 11:49:15
Nginx
Sergey, 2015-01-19 11:49:15

How to change query string in ssi?

Good time ! Here is the code

<!--#include virtual="/style.html"-->	
<!--#include virtual="/header.html"-->	

<!--#if expr="$QUERY_STRING = /flt=1004/" -->
    <!--#set var="flt" value="$arg_flt" -->
  <!--#include virtual="${flt}_menu.html"-->
  <!--#include virtual="${flt}_pogoda.html"-->
  <!--#include virtual="${flt}__traktor.html"-->
<!--#else --> 
  <!--#include virtual="100410000049_menu.html"-->
  <!--#include virtual="100410000049_pogoda.html"-->
  <!--#include virtual="100410000049__traktor.html"-->
<!--#endif -->  

<!--#if expr="$QUERY_STRING = /tid=69/" -->
  <!--#set var="tid" value="$arg_tid" -->
  <!--#include virtual="${flt}_rabota.html"-->
<!--#endif -->  

<!--#include virtual="/footer.shtml"-->

When you enter the url localhost:8080/index.shtml?flt=100410000047&tid=69
${flt}_rabota.html - this file is added to the first one at the bottom of the page, tell me how to do it when you enter localhost:8080/index.shtml?flt= 100410000047&tid=69
Description of tractors went away ${flt}__traktor.html , and instead
${flt}__rabota.html appeared

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question