Forum Discussion
jaikumar_f5_226
Nimbostratus
Jan 24, 2017URI Masking if there's multiple redirects
Hi Folks,
I went through a lot of articles in devcentral, but all I could find was for single URI masking without multiple redirects.
I have this below requirement.
End User should access and alw...
IheartF5_45022
Nacreous
Jan 24, 2017Try this to start ;-
when HTTP_REQUEST {
if { [HTTP::host] eq "abc.com" && [HTTP::path] eq "/"} {
HTTP::uri /article12/
}
}
Although it sounds as if your webserver is also performing 302 redirects unders some circumstances......
IheartF5_45022
Nacreous
Jan 24, 2017No, I suspect this may fix your problem (note have removed trailing /);-
when HTTP_REQUEST {
if { [HTTP::host] eq "abc.com" && [HTTP::path] eq "/"} {
HTTP::uri /article12
}
}
If that doesn't work please explain what is happening ie server is sending a redirect ? What Location header?
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