Forum Discussion
Tyranon_113005
Nimbostratus
Jan 16, 2018HTTP redirect when http host end with no / slash
Hello,
I'm trying when HTTP access is no slash, redirect the specified page.
Example:
http://www.example.com -> redirect A site.
http://www.example.com/ -> redirect B site.
Can I u...
youssef1
Cumulonimbus
Jan 16, 2018Hello Tyranon,
whether you put a "/" or not in your request, it's exactly the same URI for F5:
http://www.example.com
http://www.example.com/
You can try the following Irule and test both request, you will notice that in both case (request) you will see / in your logs:
when HTTP_REQUEST {
log local0. "This is the HTTP URI [HTTP::uri]"
}
So for me you can't redirect user for the use case that you have described. because in the 2 cases F5 will see a "/" whether you put it or not in your requests.
why do not you do it on other criteria? There is an imperative?
Regards
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
