Forum Discussion
ShakN_167332
Nimbostratus
Aug 20, 2014I want to Redirect multiple Sites in a single Irule. please help me with the irule command.
I have mulitple sites where i want my LAN users should not to redirected to https when they use url with http. but when any internet users use http://abc.com than it should redirect to https://abc.co...
Yann_Desmarest
Cirrus
Aug 25, 2014Hello,
There is missing bracket :
[class match [HTTP::uri] equals test]
- ShakN_167332Aug 25, 2014
Nimbostratus
it is not working do i ahve to use the full url. http://asites.abc.com/xyz/finance/SitePages/Home.aspx do i have to use full url like after /xyz/finance it is sitesPages/homes.aspx. - Yann_DesmarestAug 25, 2014
Cirrus
can you repost the full irule you are trying to test ? - ShakN_167332Aug 25, 2014
Nimbostratus
when HTTP_REQUEST { if {[HTTP::host] equals "awww.abc.com"} { HTTP::redirect "http://aportal.abc.com[HTTP::uri]" } if { [HTTP::host] equals "asites.abc.com" and [HTTP::uri] starts_with "/bseu/finance" } { HTTP::redirect "http://asites.abc.com/sites/finance" } } - ShakN_167332Aug 26, 2014
Nimbostratus
hi yann,i added the logging in irule but how to check the logs where the client ip is hitting the irule and redirection is taking place. PLease let me know the cmds to troubleshoot.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects