How do I disable directory browsing?

How do I disable directory browsing?

I want to disable directory browsing of /galerias folder and all subdirectories

Index of /galerias/409
* Parent Directory
* i1269372986681.jpg
* i1269372986682.jpg
* i1269372988680.jpg

Solutions/Answers:

Solution 1:

Create a .htaccess file with the following:

Read more

htaccess redirect to https://www

htaccess redirect to https://www

I have the following htaccess code:

RewriteEngine On
RewriteCond !{HTTPS} off
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I want my site to be redirected to https://www. with HTTPS, and enforcing the … Read more