-
Notifications
You must be signed in to change notification settings - Fork 7
/
.htaccess
56 lines (43 loc) · 1.21 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
##
## nPress - opensource cms
##
## @copyright (c) 2012 Pavel Zbytovský ([email protected])
## @link http://npress.zby.cz/
## @package nPress
##
Options -Indexes
RewriteEngine On
##
## Set the nPress directory relative to web root
##
RewriteBase /
##
## Uncomment to prefer www-prefixed domain name
##
#RewriteCond %{HTTP_HOST} ^www.zby.cz$
#RewriteRule ^.*$ http://zby.cz/$0 [R=301,L]
##
## Main rewrite rule - nPress handles everything
## - uncomment following lines to allow parallel real-directories structure
##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !^(favicon\.ico|index\.php|static/.+|data/.+|theme/.+)$ index.php [L]
##
## Cached thumbnails handled by apache, non-existent by Nette
##
RewriteCond %{REQUEST_URI} /data/thumbs/([^.]+)(\.[^.]+)?\.(jpg|jpeg|png|gif)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [NE,L]
##
## PHP settings - comment those when running PHP as CGI
##
#php_value default_charset utf-8
#php_value date.timezone Europe/Prague
#php_flag magic_quotes_gpc Off
#php_flag magic_quotes_runtime Off
#
#php_flag file_uploads On
#php_value upload_max_filesize 100M
#php_value post_max_size 100M
###php_value upload_tmp_dir temporarydir