forked from justdevelopit/php-fms-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
41 lines (31 loc) · 1.53 KB
/
.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Options +FollowSymLinks -Indexes
RewriteEngine On
RewriteBase /
RewriteRule ^index.(php|htm?l)$ / [L,R=301]
###############################################################################
# [ REDIRECT to WWW ]
###############################################################################
RewriteCond %{HTTP_HOST} !^ben.php-fms-test.com [NC]
RewriteRule (.*) http://ben.php-fms-test.com/$1 [L,QSA,R=301]
###############################################################################
# [ PREVENT PHP LOGO FROM QUERY STRING ]
###############################################################################
RewriteCond %{QUERY_STRING} ^=(PHPE9568F34-D428-11d2-A769-00AA001ACF42|PHPE9568F35-D428-11d2-A769-00AA001ACF42|PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000|PHPE9568F36-D428-11d2-A769-00AA001ACF42)$
RewriteRule ^(.*)$ $0? [R,L]
###############################################################################
# PROTECT FILES + FOLDERS
###############################################################################
RewriteRule ^_(inc|php|templates) / [R,L]
<Files ~ "\.(inc)$">
order allow,deny
deny from all
</Files>
###############################################################################
# FRONT CONTROLLER
###############################################################################
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . / [L]
###############################################################################
BrowserMatch "MSIE" force-no-vary
BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary