harmim/framework/master/www/.htaccess - Htaccess File

harmim/framework/master/www/.htaccess

# disable directory listing
Options -Indexes

# enable cool URL
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /

  # front controller
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule !.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar.gz)$ index.php [L]
</IfModule>

AddType application/x-httpd-php .php .phtml

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache