I am trying to use the Tuke URL relay filter to rewrite the query string to the solar.
The following configurations:
& lt; Urlrewrite use-query-string = "true" & gt; & Lt; Rules & gt; & Lt; From & gt; ^ / Test1 /(.*) command = (*) clean = true (*) $ & Lt; / & Gt; & Lt; To type = "redirection"> $ 1 command = $ 2 = $ right <3; / To & gt; & Lt; / Rules & gt; & Lt; / Urlrewrite & gt;
This configuration works if the query string is not read as a query string i.e.
http: // localhost / test1 / command = Something and clean = true & amp; Somethingelese = new
but failed as a purpose:
http: // localhost / test1? Command = something & clean = true & somethingelese = new
lesson ">
You need to include a question mark in the url.
Here's an example of how I did it:
But I think you really want There is something like this:
urlrewrite use-query-strings = "true"> gt; rule> gt; from & gt; ^ / test1 / \? (. *) Command = (*) Clean = True (*) $. $ 1 command = $ 2 = $ true $ 3 & Lt; / to & gt; & lt; / rules & gt; & lt; / ur Lrewrite & gt;
Comments
Post a Comment