Moved index & htaccess to public folder

This commit is contained in:
2019-04-25 10:26:11 +02:00
parent 51a299bf62
commit ae535719f2
2 changed files with 14 additions and 10 deletions

33
public/.htaccess Normal file
View File

@ -0,0 +1,33 @@
# Apache version required 2.x
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L]
</IfModule>
ErrorDocument 403 /index.php
<FilesMatch ".*\.(php)$">
<IfVersion < 2.4>
Order Allow,Deny
Deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</FilesMatch>
# on donne l'autorisation d'acceder au fichier handler.php (sinon le site ne sera pas foncitonnel)
<FilesMatch "^index.php">
<IfVersion < 2.4>
Order Allow,Deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</FilesMatch>