How to set up the htaccess File on Apache on CentOS


Example: open file /etc/httpd/conf.d/http.conf

In the Directory block:

Now is:

    <Directory /var/www/html/>
        Options -Indexes
        Require all granted		
    </Directory>

Change to:

    <Directory /var/www/html/>        
		Options Indexes FollowSymLinks
		AllowOverride All
		Require all granted
    </Directory>

htaccess centos

Now restart service httpd

server httpd restart

Done!

Recent search terms:

  • centos 7 apache htaccess enable

Leave a Reply