Three Virtual Servers are configured with a single Virtual IP serving ports 80 (HTTP) / 443 (HTTPS) / 8443.
Virtual Servers for 80 & 443 have individual iRule’s configured and are working fine, we now need to configure an iRule for the Virtual Server serving port 8443 which should do the following:
a) any request received for www.domain.com:8443 should be redirected either to http://www.domain.com:8443 or https://www.domain.com:8443 based on the client requirement &
b) while redirecting the iRule should also append & redirect the uri to another uri, for eg.
http://www.domain.com:8443/cif/services/spm should get redirected to http://www.domain.com:8443/newservices/spm
this redirection should work for both http & https requests