—URL Rewrite

  1. Create a new iRule

Paste the following text

////The following rule says
If you come in on https://www.xxxxxx.com.au/
-> Rewrite the url to https://www.xxxxxx.com.au/Rosteronprod
///Part two
If you come in on https://www.xxxxx.com.au/Mobile
-> Rewrite the url to https://www.xxxxxx.com.au/Rosteronprod/RosteronProdMobile

when HTTP_REQUEST {
if { [HTTP::uri] equals “/” } {
HTTP::uri “/CompanyOnProd”
}
if { [HTTP::uri] equals “/Mobile” } {
HTTP::uri “/Company/Mobile”
}
}

  1. Click on your virtual server.
    ->Choose the “HTTP” profile
  2. Open “Resources” on the Virtual server tab
    -> Irules “Manage”
    -> Select your iRules

Leave a Reply