Parveez_70209
Aug 29, 2013Nimbostratus
Assist in Redirecting External URL to Internal URL: Currently Its failing
Requirement:
When user hits External URL: retail-api-preview.jdadelivers.com, the requirement is to redirect it to ilrwesapp1.jdadelivers.com/retail
Trying the below Irule: but failing in redirecting.
when CLIENT_ACCEPTED { set default_pool [LB::server pool] }
when HTTP_REQUEST { set http_uri [string tolower [HTTP::uri]]}
if {$http_uri equals "/" } { HTTP::redirect "http://ilrwesapp1.jdadelivers.com/retail/" pool retail-api-preview-Pool
return }
Kindly assist:
Thanks and Regards Parveez