Mystic_142330
Aug 14, 2015Nimbostratus
iRule redirect syntax
Hello,
I'm trying to create a simple redirect irule for a VIP i created for port 8080. Obviously users are typing in the following
http://mywebsite.com and it's failing as it needs to be http://mywebsite.com:8080/imagecast/default.asp
I've tried the following iRule and I can get the VIP to redirect when i manually type in :8080. I would like this to redirect the user to the correct port and file extension:
when HTTP_REQUEST { if { [HTTP::uri] equals "" or [HTTP::uri] equals "/" } { HTTP::redirect http://mywebsite.com:8080/imagecast/default.asp }}
I've tried a few different things but doesn't seem to be coming close.