make htaccess sample file more visible

This commit is contained in:
Christoph Kottke
2024-05-09 12:57:49 +02:00
parent 0ccd588bba
commit eea21d5a49
2 changed files with 1 additions and 1 deletions

17
htaccess.sample Normal file
View File

@@ -0,0 +1,17 @@
# 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'] = '';
Options -Indexes
ServerSignature off
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