Forum Discussion
Jeff_Nguyen_449
Jun 28, 2011Nimbostratus
help with wildcard uri into a website file redirect
I need help. I'm trying to direct everything that is requested under /proccaps/igs/ to the redirect uri file. But it only redirect if specific mysite.website.com/proccap/igs. Here's what i have so far. Appreciate any help you can provide me. Thanks in advance.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "mysite.website.com" and [string tolower [HTTP::uri]] equals "/proccap/igs/*"} {
HTTP::redirect "https://newsite.website.com/sites/igs/eusp/default.aspx?PageView=Shared"
}
}
- hooleylistCirrostratusHI Jeff,
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "mysite.website.com" \ and [string tolower [HTTP::uri]] starts_with "/proccap/igs/"} { HTTP::redirect "https://newsite.website.com/sites/igs/eusp/default.aspx?PageView=Shared" } }
- Jeff_Nguyen_449NimbostratusAaron, that worked perfect! Thanks for the help!
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