Open the configuration file for the website. Generally, it is located at “/etc/httpd/sites-available/”. E.g. For example.com, the file would be “/etc/httpd/sites-available/example.com.conf” 2. Inside the “VirtualHost” block, please add the below code: Options Indexes FollowSymLinks AllowOverride All Require all granted   The final code will look like this: Save the file and restart httpd/apache service using below command: service httpd restart or service apache2 restart