Forum Discussion
Lee_Sutcliffe
Aug 30, 2018Nacreous
Hi, you say in your post that the redirect has to be total different? How do you mean? Different for each request?
The
[HTTP::path]
command in an iRule will return everything up to the query.
So in your example: https://www.host.com/abc/def/ghi?query=value&query1=value1
[HTTP::path] would return /abc/def/ghi
So you can do a 301 redirect to https://www.host.com/abc/def/ghi using the following command
HTTP::redirect https://[HTTP::host][HTTP::path]
But I'm not sure if this is exactly what you're asking, please could you be more specific?