Htaccess File

erdnaxe/RecetteInLine/master/.htaccess

REQUEST_FILENAME
# RENAME THIS FILE TO .htaccess

<IfModule mod_rewrite.c>
  RewriteEngine on
  
  # Allow access to assets folder from plugins folders
  RewriteRule ^app/plugins/(.+)/assets - [L]
  
  # forbid access to files and folders under app and vendor
  RewriteRule ^app/.*$ - [L,F]
  RewriteRule ^vendor/.*$ - [L,F]
  
  # rewrite to index.php
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?action=$1 [L,QSA]
  
</IfModule>
Exit mobile version