Forum Discussion
Tanuj_90312
Nimbostratus
Jun 02, 2014iRule for HTTPS Virtual Server
Hi,
I have a virtual server created at port 443.
I want the URL to be permanently redirected as per below:
From HTTPS://XYZ.com to HTTPS://XYZ.com/alpha
I think an iRule should solve my pur...
Jun 06, 2014
Np, glad to help.
Try this one?
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { !($uri starts_with "/alpha" || $uri starts_with "/beta") } {
HTTP::respond 301 Location "https://xyz.com/alpha"
}
}
/Patrik
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