How can I configure a redirect rule that keeps the original path and query

FAQ ID:    FAQ698
Version:    1.0
Status:    Published
Published date:    01/18/2010


VPM Example

      Destination - URL object,  http://www.google.com.au         Action - Return Redirect with the value  https://$(url.host)$(url.pathquery)

CPL example

  url.domain="http://www.google.com.au" redirect(302, ".*", "https://$(url.host)$(url.pathquery)" );

Test request:
Result of the redirect:   
   HTTP/1.x 302 Found
   Location: https://www.google.com.au/index.php?var=test

Rate this Page

Please take a moment to complete this form to help us better serve you.

Did this document help answer your question?
If you are finished providing feedback, please click the RATE CONTENT button. Otherwise, please add more detail in the following text box and then click RATE CONTENT.

Your response will be used to improve our document content.

Ask a Question