Forum Discussion
Rosieodonell_16
Cirrus
Mar 12, 2015Redirect users to a sharepoint using 302
I have users entering/opening a link to https://site.domain.com/UrgentAlerts/{num} and it needs to be redirected to https://site2.domain.com/sites/EmployeePortal/News/_layouts/EmployeePortalMain/go.a...
Michael_Jenkins
Cirrostratus
Mar 12, 2015you could try something like this
when HTTP_REQUEST {
if {[string tolower "[HTTP::host][HTTP::uri]"] starts_with "site.domain.com/urgentalerts/"} {
HTTP::respond 302 Location "[string map -nocase {"site.domain.com/UrgentAlerts/" "https://site2.domain.com/sites/EmployeePortal/News/_layouts/EmployeePortalMain/go.aspx?C="} "[HTTP::host][HTTP::uri]"]"
}
}
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