The requirement is VIP 2 with port 8080 to not have the hard coded domain names but to use the host variable without the port number. These rules should be redirecting to the default port for http.
The below irule will meet the requirement or not ? if not please suggest how to write the irule.
This strips the port number from the host header and sends a 301 to the new location. If you want to send a 302 instead, just change the status code in HTTP::respond.
If I’ve misinterpreted your scenario, let me know.