Forum Discussion
Colin_17201
Nimbostratus
Jun 15, 2008Help On Redirect on F5
Hi All,
I got a problem is when i enable the "rewrite redirect" on the http profile. After i turn it on with the "matching" not even putting any irules in the Virtual Server, when i type in any url on the web browswer it will automatically turn me to the https page.
For example : i type http://www.abc.com then it turn me to https://www.abc.com
I would like to know is this normal ??
Please HELP.......
5 Replies
- hoolio
Cirrostratus
The rewrite redirect option is triggered without respect to an iRule. This is expected behavior. - Colin_17201
Nimbostratus
I would like to redirect when access to http://abc.com then redirect it to http://abc.com/abc with the irule below but it keeps on looping. Headache... I am new to iRule. - hoolio
Cirrostratus
I assume you only want to redirect requests for abc.com to the root document to /abc. If so, you can add a check for the path:when HTTP_REQUEST { if {[string tolower [HTTP::host]] equals "abc.com" && [HTTP::path] eq "/"}{ HTTP::redirect "http://abc.com/abc" } }
- Colin_Walker_12Historic F5 AccountThe reason you were getting a loop is because you were forwarding everything that has a host of abc.com to abc.com/abc.
- Hamish
Cirrocumulus
Not necessarily.
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