mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-21 15:56:30 +00:00
131abcce7d
Securitything: Prevent .git-directory being served/exposed
15 lines
461 B
Plaintext
15 lines
461 B
Plaintext
# If you want to hide 'index.php' from the URL, rename this file to '.htaccess' on your server
|
|
# Then change the following variable in /application/config/config.php
|
|
# $config['index_page'] = '';
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_URI} ^/backup/$
|
|
RewriteRule ^(.*)$ /index.php?/$1 "[L,QSA,B= ?,BNP]"
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^(.*)$ /index.php?/$1 "[L,QSA,B= ?,BNP]"
|
|
|
|
RedirectMatch 404 ^/\.git
|