Forum Discussion
Davean_Hosang_1
Nimbostratus
Dec 01, 2008Redirect to URI but keep the host the same
Hello,
I am trying to redirect all request going to mysite.com and www.mysite.com to a new URI path but keep the host the same.
Example:
if (http_host contains "mysite.com")
redirect to "http://%h/maintenance/maintenance.html"
use pool serverpool1
}
else {
discard
}
Of course the rule above does not work for me because it keeps redirecting me to the "http://mysite.com/maintenance/maintenance.html"
page
Is this possible?
- hoolio
Cirrostratus
Hi there,if (http_host contains "mysite.com"){ if (http_uri contains "/maintenance/"){ use pool serverpool1 } else { redirect to "http://%h/maintenance/maintenance.html" } } else { discard }
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