Tuesday, November 17, 2015

Fedora - Enable htaccess rules by AllowOverride setting

Peace be upon you, by default Apache is configured to ignore some or all directives in .htaccess files. This is for security reasons. The AllowOverride directive controls which features will be allowed in .htaccess files. For example AllowOverride None can turn off htaccess files for a folder and its subfolders. All you need it to setting Apache web server configuration file.
# vi /etc/httpd/conf/httpd.conf
Then go to line 151 and change AllowOverride None with AllowOverride All.

Next, reload you Apache webserver with new setting
# systemctl restart httpd.service

No comments:

Post a Comment