-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
38 lines (29 loc) · 1018 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# enable PHP error logging
php_flag log_errors on
php_value error_log ./wirby/logs/php_error.log
<Files php_error.log>
Order allow,deny
Deny from all
Satisfy All
</Files>
RewriteEngine on
RewriteBase /
RewriteRule ^admin$ index.php?admin=1 [NC,QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z]{2})/(.*)$ index.php?lang=$1&page=$2 [NC,QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [NC,QSA,L]
# RewriteCond %{QUERY_STRING} ^hash(.+)
# RewriteRule ^$ /cms/?%1 [NE,N,R=301]
# Enforce www
# If you have subdomains, you can add them to
# the list using the "|" (OR) regex operator
# RewriteCond %{HTTP_HOST} !^(www|dev) [NC]
# RewriteRule ^(.*)$ http://www.med-gutachten.at/ [L,R=301]
# Enforce NO www
# RewriteCond %{HTTP_HOST} ^www [NC]
# RewriteRule ^(.*)$ http://domain.tld/$1 [L,R=301]
# RewriteCond %{REQUEST_URI} !^(/|/index.php|/blah.php)$
# RewriteRule ^(.*)$ index.php?name=$1 [R]