Disable .htaccess on Apache

It is possible to disable .htaccess files while using mod_rewrite in virtual host’s configuration file.

    
        Options FollowSymLinks
        AllowOverride None
        Require all granted
        
                RewriteEngine On
                RewriteBase /
                RewriteRule ^index\.php$ - [L]
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule . /index.php [L]
        
    
Share this article

Posted

in

by

Tags: