Forum Discussion
Korai_331784
Altostratus
May 31, 2018Redirection of one site to another
Hi,
I needs to redirect only when last string matches as I dont wana redirect whole site.
example below
--->From
existing irule attached with external https vServer. currently i...
Samir_Jha_52506
Noctilucent
Jun 01, 2018Above iRule has syntax error. I have bit modified iRule and added
HTTP::path function to make condition more easy. you can modify based on requirements.
when HTTP_REQUEST {
if {[string tolower [HTTP::path]] equals "/save/samples/documents/chop-employe.pdf"}
{
HTTP::respond 301 Location "https://newlocation/employee/overview[HTTP::uri]"
}
}
- Korai_331784Jun 01, 2018
Altostratus
Hi,
Many thanks , I am try to get approval to test this and will update you.
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