You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
httpd in OpenBSD 5.7 with "directory auto index" generates trailing slashes "/" in the HTML text output ">brA/", but not in the corresponding URLs (href="brA"), see example page below: ... <a href="brA">brA/</a> 02-Mar-2008 16:15 - ...
When the user clicks on those relative URLs, browsers attempt to fetch files, instead of directories. httpd responds with 301 Moved Permanently and redirect browsers to http://site.com/pfstat/brA/.
If auto index would append trailing slashes also to the URL, then that would save such redirects (actually two redirects when using SSL with HSTS, the first is a 301 to http://site.com/pfstat/brA/, and then second a 307 to https://site.com/pfstat/brA/).
httpd in OpenBSD 5.7 with "directory auto index" generates trailing slashes "/" in the HTML text output ">brA/", but not in the corresponding URLs (href="brA"), see example page below:
... <a href="brA">brA/</a> 02-Mar-2008 16:15 - ...
When the user clicks on those relative URLs, browsers attempt to fetch files, instead of directories. httpd responds with
301 Moved Permanently
and redirect browsers tohttp://site.com/pfstat/brA/
.If auto index would append trailing slashes also to the URL, then that would save such redirects (actually two redirects when using SSL with HSTS, the first is a 301 to
http://site.com/pfstat/brA/
, and then second a 307 tohttps://site.com/pfstat/brA/
).Is this correct by design, or an oversight/bug?
The text was updated successfully, but these errors were encountered: