-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
58 lines (43 loc) · 1.47 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
################################################
## Php configuration ###
################################################
php_value default_charset Utf-8
# developpement version ######################
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_value error_reporting -1
## end of developpement version ###############
################################################
## Rewriting ###
################################################
Options -Indexes
RewriteEngine On
Options +Multiviews
## force redirection domain without www (no duplicate content for Google) ##
# RewriteCond %{HTTP_HOST} ^mydomain.com$
# RewriteRule ^(.*) http://www.mydomain.com/ [QSA,L,R=301]
###########################################################################
# normal rewriting #################################
<FilesMatch "^(fr|en|de|es|it|ru|jp)$">
ForceType application/x-httpd-php
</FilesMatch>
# special rewriting for suPhp #################################
RewriteRule ^(en|fr|de|es|it|ru) index.php [L]
###############################################################
## files type protection #######################################################
# Protection of *.yml
<Files ~ "\.yml$">
Order allow,deny
Deny from all
</Files>
# Protection of *.inc.php
<Files ~ "\.inc\.php$">
Order allow,deny
Deny from all
</Files>
# Protection of *.class.php
<Files ~ "\.class\.php$">
Order allow,deny
Deny from all
</Files>