Forum Discussion
Shivam_84461
Nimbostratus
May 21, 2015Problem with URL redirection
I wanted to redirect the webpages on this condition
if http://xyz.com/j/k/l
redirect to www.abc.com
if http://xyz.com
redirect to https://xyz.com/a/b
When I configured the irule, first part is ...
Michael_Yates
Nimbostratus
May 21, 2015Yes. That will make a difference. If you want to troubleshoot then create another simple iRule (and make sure that it is applied to the Virtual Server above the iRule you are working on).
~~~
when HTTP_REQUEST {
log local0. "Incoming URI: [ string tolower [HTTP::uri]]"
}
~~~
Then run a tail -f on your /var/log/ltm log and try your test again. This will log the URI so you can see what the iRule is seeing. If it doesn't match anything in the iRule your working on, you will see why.
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