Forum Discussion
shashank_shetti
Nimbostratus
Feb 16, 2016Redirect but keep the original url in the address bar
Given a domain hosted in our company orginalSite.com but this site should resolve to vendor site ex: vendorsite.com.
It can not be redirected because requirement is to keep orginalSite.com (orig...
Josh_Abaire
Nimbostratus
Feb 17, 2016If the backend server is configured to serve content for vendorsite.com you may also want to consider rewriting the response header, incase the Location field exists it can also be changed. Something along these lines:
when HTTP_RESPONSE {
if {[HTTP::header value "Location"] contains "vendorsite.com"} {
HTTP::header replace Location [string map {"vendorsite.com" "originalsite.com"}
}
}
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