Htaccess: add/remove trailing slash from URL

Right below the RewriteEngine On line, add:

To enforce a no-trailing-slash policy.
[crayon-5bf06e9743652006807354/] To enforce a trailing-slash policy:
[crayon-5bf06e974365e125432016/]

Read Also:  Add intelliSense for node, angular, lodash and other javascript libraries in vs code

Leave a Reply

Your email address will not be published. Required fields are marked *