mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-04-22 19:02:12 +00:00
35 lines
648 B
ApacheConf
35 lines
648 B
ApacheConf
# Apache version required 2.x
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteRule ^(.*)$ index.php [L]
|
|
</IfModule>
|
|
|
|
ErrorDocument 403 /index.php
|
|
ErrorDocument 404 /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>
|