Forum Discussion
jaikumar_f5
Aug 23, 2017MVP
Question: How do I write iRule, whenever user type (in either one of these conditions): http://www.abc.com http://www.abc.com/xyz https://www.abc.com https://www.abc.com/xyz
So thats 3 http URL and 2 https urls, but all these 5 URL's still resolve to same VIP. If the traffic comes on http - it would goto 1.1.1.1:80 VIP, if the traffic comes to https - it would goto 1.1.1.1:443 VIP.
So you require all 3 URL's to goto https, a simple http2https Irule on the 1.1.1.1:80 VIP should do the work.
- When traffic comes, it would goto https://www.abc.com
- When traffic comes, it would goto https://www.abc.com/xyz
- When http://www.abc.com traffic comes, it would goto https://www.abc.com
- When http://www.abc.com/xyz traffic comes, it would goto https://www.abc.com/xyz