I have two scenarios I need iRules written for and I am having trouble finding a forum thread that related to my setup. I have generic HTTP to HTTPS iRules, but nothing that modifies the domain and URI.
==========================================
Scenario 1
! Redirect a HTTP request to HTTPS and append a URI on the redirect.
Example:
http://ABC.com redirected to https://ABC.com/Consumer/Login.do
==========================================
Scenario 2
! Redirect a HTTP request from a specific branded site to a generic HTTPS site with a URI/PromoCode
Example:
http://ABC.com redirected to https://genericsite.com/Consumer/Landing.do?promoCode=ABC
==========================================
If someone cold assist me with how this would work I would appreciate it.