We are planing for URI redirection on STG environment where we want if some one type https://abc.com/SitePages/Homepage.aspx it should redirect to https://abc.com/personal-finance/overview
Which Redirection I-rule will work for this requirement.
We are planing for URI redirection on STG environment where we want if some one type https://abc.com/SitePages/Homepage.aspx it should redirect to https://abc.com/personal-finance/overview
Which Redirection I-rule will work for this requirement.
if some one type https://abc.com/SitePages/Homepage.aspx it should redirect to https://abc.com/personal-finance/overview
you can check uri using HTTP::uri and redirect using HTTP::redirect command.
HTTP::uri
HTTP::redirect
if some one type https://abc.com/SitePages/Homepage.aspx it should redirect to https://abc.com/personal-finance/overview
you can check uri using HTTP::uri and redirect using HTTP::redirect command.
HTTP::uri
HTTP::redirect
Thanks for your reply, But how come pool will serve the request when both pages are served by same server.
Thanks for your reply, But how come pool will serve the request when both pages are served by same server.
sorry, what do you mean?
sorry, what do you mean?
In this request my both URL are pointing to the same server than how the cgi_Pool will come in picture when HTTP_REQUEST { 2 if { [HTTP::uri] ends_with “cgi” } { 3 pool cgi_pool 4 } elseif { [HTTP::uri] starts_with “/abc” } { 5 pool abc_servers 6 } 7 }
In this request my both URL are pointing to the same server than how the cgi_Pool will come in picture when HTTP_REQUEST { 2 if { [HTTP::uri] ends_with “cgi” } { 3 pool cgi_pool 4 } elseif { [HTTP::uri] starts_with “/abc” } { 5 pool abc_servers 6 } 7 }
are you talking about redirection of https://abc.com/SitePages/Homepage.aspx or something else? /SitePages/Homepage.aspx does not end with cgi or start with /abc, does it?
are you talking about redirection of https://abc.com/SitePages/Homepage.aspx or something else? /SitePages/Homepage.aspx does not end with cgi or start with /abc, does it?
I just want to know that which I-rule I should apply so that I can get the desired URL. as mentioned earlier…
I just want to know that which I-rule I should apply so that I can get the desired URL. as mentioned earlier…
e.g. configuration [root@ve11b:Active:In Sync] config tmsh list ltm rule qux ltm rule qux { when HTTP_REQUEST { if { [HTTP::uri] equals “/SitePages/Homepage.aspx” } { HTTP::redirect “https://[HTTP::host]/personal-finance/overview” } } } test [root@ve11b:Active:In Sync] config curl -Ik https://172.28.24.10/SitePages/Homepage.aspx -H “Host: abc.com” HTTP/1.0 302 Found Location: https://abc.com/personal-finance/overview Server: BigIP Connection: Keep-Alive Content-Length: 0
e.g. configuration [root@ve11b:Active:In Sync] config tmsh list ltm rule qux ltm rule qux { when HTTP_REQUEST { if { [HTTP::uri] equals “/SitePages/Homepage.aspx” } { HTTP::redirect “https://[HTTP::host]/personal-finance/overview” } } } test [root@ve11b:Active:In Sync] config curl -Ik https://172.28.24.10/SitePages/Homepage.aspx -H “Host: abc.com” HTTP/1.0 302 Found Location: https://abc.com/personal-finance/overview Server: BigIP Connection: Keep-Alive Content-Length: 0