Forum Discussion
http redirect i-rule under https VS not working
Please try below
when HTTP_REQUEST { if { [string tolower [HTTP::host]] contains "abc.bbc.com" and [string tolower [HTTP::uri]] equals "/"} { HTTP::redirect https://abc.bbc.com/mydirectory/ } }
Thanks a lot Stanislas Piron !! The i-rule is working like a charm. Thanks again for your help !!
I have 3 more urls hosted on same webserver and they also require similar redirection. Can these other three urls redirections be clubbed into this i-rule or i have to write a separate i-rule for each of them ?
def.bbc.com points to https://def.bbc.com/yourdirectory ghi.bbc.com points to https://ghi.bbc.com/newdirectory jkl.bbc.com points to https://jkl.bbc.com/olddirectory
Also May i ask the difference between your code and my code? It will help me understanding & learning the i-rule code and future i-rule writing.
Recent Discussions
Related Content
* 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