Redirection iRule not returning page after login page
Hello Folks ,
I have below requirement: User will enter Internal URL in browser (internal VIP IP) eg. ABC.com It should get redirected to external VIP (Salesforce.com). and the user should see the ABC.com/ when the salesforce returs page. This works well till i open the initial page, but after entering login credentials, the further pages are not seen by the user and still user sees the login page that was seen initially, (Credentials are correct).
for this i have created irule as below.can you let know what could i check further , the user should be able to see the page after logging in.
when HTTP_REQUEST { if {[HTTP::header exists "Accept-Encoding"]} { HTTP::header remove "Accept-Encoding" }
if {[string tolower [HTTP::host]] contains "abc.com"} { HTTP::header replace "Host" "uat-abc.cs81.force.com" if {([HTTP::path] eq "/")} { HTTP::uri "/MyBC/"
} elseif {([HTTP::path] contains "/MyBC/")}{
pool uat-abc.cs81.force.com_P_443 } pool uat-abc.cs81.force.com_P_443 } }
when HTTP_RESPONSE { if {[HTTP::header value Content-Type] contains "text"}{ set find_url "uat-abc.cs81.force.com" set replace_url "abc.com" STREAM::expression "@$find_url@$replace_url@$" STREAM::enable } else { STREAM::disable} } --------------------------------------------------