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...
Stanislas_Piro2
Cumulonimbus
Jan 16, 2018Youssef is right, when requesting http://www.example.com, the http request is
GET / HTTP/1.1
Host: www.example.com
You can find this in http rfc
If the port is empty or not given, port 80 is assumed. The semantics are that the identified resource is located at the server listening for TCP connections on that port of that host, and the Request-URI for the resource is abs_path. If the abs_path is not present in the URL, it must be given as "/" when used as a Request-URI (Section 5.1.2).
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
