-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
24 lines (20 loc) · 934 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<IfModule mod_rewrite.c>
# from https://stackoverflow.com/a/9694267/3938401
# extra help at https://stackoverflow.com/a/36675646/3938401
# ignoring specific folders: https://stackoverflow.com/questions/3414015/redirect-site-with-htaccess-but-exclude-one-folder
RewriteEngine On
Options -Indexes
# Items to not shove through router.php routing
# https://stackoverflow.com/a/40758955/3938401
# Example:
# RewriteRule ^(analytics) - [L]
# Run everything else but real files through router.php
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ init.php/$1?%{QUERY_STRING} [L]
# Deny access to files
# Don't forget that some of your project-specific files might need this too!
RewriteRule ^config-private-sample\.php$ - [F]
RewriteRule ^config-private\.php$ - [F]
RewriteRule ^config\.php$ - [F]
</IfModule>