How do I disable directory browsing?

Create an .htaccess file containing the following line: Options -Indexes That is one option. Another option is editing your apache configuration file. In order to do so, you first need to open it with the command: vim /etc/httpd/conf/httpd.conf Then find the line: Options Indexes FollowSymLinks Change that line to: Options FollowSymLinks Lastly save and exit … Read more

How to redirect all HTTP requests to HTTPS using .htaccess rules?

The Apache docs recommend against using a rewrite: To redirect http URLs to https, do the following: <VirtualHost *:80> ServerName www.example.com Redirect / https://www.example.com/ </VirtualHost> <VirtualHost *:443> ServerName www.example.com # … SSL configuration goes here </VirtualHost> This snippet should go into main server configuration file, not into .htaccess as asked in the question. This article … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)