Skip to content

Commit

Permalink
HTAcess: Removed the allow for php files
Browse files Browse the repository at this point in the history
  • Loading branch information
fet1sov authored Jun 13, 2024
1 parent 2b44f9a commit 3b098aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion www/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ php_flag display_errors on
php_flag html_errors on
php_flag log_errors on

<FilesMatch ".(htaccess|htpasswd|ini|phps|php|fla|psd|log|sh)$">
Order Allow,Deny
Deny from all
</FilesMatch>

RewriteEngine On

# Router.php
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+)$ index.php?uri=$1 [QSA,L]
RewriteRule ^(.+)$ index.php?uri=$1 [QSA,L]

0 comments on commit 3b098aa

Please sign in to comment.