Forum Discussion
lieweffect_3313
Nimbostratus
Aug 23, 2017Mulitiple name redirect to URL
Hi,
I have URL as , when typing at the browser, it will auto redirect to folder and the URL at the browser will show https://www.abc.com/xyz/Login.aspx?ReturnUrl=%2fxyz
Question:
How do I ...
Stanislas_Piro2
Cumulonimbus
Aug 23, 2017Hi,
you can try this irule
when HTTP_REQUEST {
if {[HTTP::host] equals "www.abc.com"} {
switch [HTTP::path] {
"/" - "/xyz" {HTTP::respond 301 Location "https://www.abc.com/xyz/Login.aspx?ReturnUrl=%2fxyz"}
}
}
}
For you information, even if user enter in browser bar ";, ";, ";, ";, "; or ";, the HTTP request is the same:
GET / HTTP/1.1
Host: www.abc.com
User-Agent: blablabla
Other headers: blablabla
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
