Forum Discussion
Diego_23471
Nimbostratus
Mar 10, 2014uri rewrite or redirect
Hello
I would like to setup an irule to enforce the url used to access a site.
For example, for site http://lab.test.com/login.
If someone tries to alter the url to http://www.lab.tes...
Kevin_Stewart
Employee
Mar 10, 2014Ah, so:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] ne "lab.test.com" } {
HTTP::redirect "http://lab.test.com[HTTP::uri]"
}
}
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