All our shared web hosting servers automatically add a trailing slash to all requests to directories or directory-like requests. For example:
https://yourhawkhostsite.com/directory will redirect to https://yourhawkhostsite.com/directory/
The same logic applies to applications such as WordPress. For example: https://yourhawkhostwordpress.com/2024/05/30/your-new-post would redirect to https://yourhawkhostwordpress.com/2024/05/30/your-new-post/
All our web hosting servers function as "DirectorySlash On," and you cannot modify their behavior. If you require a change in functionality, you would need one of our cloud computes to alter the behavior.
There are security and usability reasons for why this functions as it does on Litespeed/Apache:
- The user is finally requesting that the canonical URL of the resource
- mod_autoindex work correctly. Since it doesn't emit the path in the link, it would point to the wrong path.
- DirectoryIndex will be evaluated only for directories requested with trailing slash.
- Relative URL references inside html pages will work correctly.