I have a (WordPress powered) website, and Google is indexing some of the sub-directories. How can I stop Apache from showing users the directory listing? I know I can edit .htaccess to password-protect a directory, but I would prefer a 403 / custom redirect if possible.
I have a (WordPress powered) website, and Google is indexing some of the sub-directories.
Share
You need this entry in your
.htaccessfile: