Forum Discussion
Dec 21, 2016
Hi! I guess I should have been clearer in my answer too... 🙂
IF by slim chance some user would send a request with an empty URI your original rule would do it:
when HTTP_REQUEST {
if { [HTTP::uri] eq "" } {
HTTP::respond 302 Location "https://webpage.com/";
}
}
As for the forcing the browser to show "/" when the user accesses your site, this is purely on the client side.
- Chrome does not show it
- Edge does not show it (does not even show the protocol)
- Internet explorer shows it
But in all cases, what's sent to the server is another thing. Chrome and Edge still sends "/", they just don't show it. To change this behavior I suppose the browser settings would be a good start. 🙂
/Patrik