.htaccess - Make a directory invisible
问题 I have a .htaccess file that currently looks like: <Files .htaccess> order allow,deny deny from all </Files> Options All -Indexes IndexIgnore * # Respond to /include/ with 404 instead of 403 RewriteEngine On RedirectMatch 404 ^/include(/?|/.*)$ I'm trying to prevent everyone from knowing that /include/ exists, however I've come across an issue. Although visiting http://www.example.com/include gives a 404, the browser adds an end slash (thus giving http://www.example.com/include/) which shows