Forum Discussion
URL redirection
HI All,
I have virtual IP configured with port 80 and 443. and the url is below test.jobcredits.com . if I type http://test.jobcredits.com or test.jobcredits.com in the browser it is redirecting to https://test.jobcredits.com/jobcredits/login.asp.can some one suggest me irule to to work like an user hit http://test.jobcredits.com or test.jobcredits.com it should redirect it www.test.jobcredits.com.
1 Reply
- Michael_Jenkins
Cirrostratus
One of your best bets will be to check out a few different pages including the wiki article for HTTP::uri to understand how to modify the URI in an iRule. Also the iRules 101 articles that are a good introduction to iRules in general and how to write them.
Then, you can look at this iRule and better understand exactly what's going on, or how to modify it in the future to suit any changing needs you may have.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "test.jobcredits.com" && ([HTTP::URI] equals "/") } { HTTP::redirect "http://www.test.jobcredits.com[HTTP::uri]" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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