This repository has been archived by the owner on Jun 19, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
executable file
·52 lines (39 loc) · 1.87 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
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} index\.php
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType text/html "access plus 1 day"
ExpiresByType text/xml "access plus 1 day"
ExpiresByType application/json "access plus 1 hour"
ExpiresByType application/xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType image/x-icon "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType application/vnd.ms-fontobject "access plus 1 week"
ExpiresByType application/x-font-ttf "access plus 1 week"
ExpiresByType application/x-font-woff "access plus 1 week"
ExpiresByType font/opentype "access plus 1 week"
ExpiresByType image/svg+xml "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)-(.+)\.css$ css/css.php?style=$1&ver=$2 [L]
RewriteRule ^([^-]+)\.css$ css/css.php?style=$1 [L]
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule (.*) http://%1/$1 [R=301,QSA,NE,L]
RewriteCond %{REQUEST_FILENAME} ^.*\.inc$
RewriteRule ^(.*)$ $1 [F]
RewriteRule ^changelog-1\.html$ /changelog.html [R=301,L]
RewriteRule ^changelog-(.*)\.html$ ostatni/changelog.php?pageID=$1 [L]
RewriteRule ostatni\.html$ ostatni/index.php [L]
RewriteRule (.*).html ostatni/$1.php [L]
RewriteRule ^zonglovani.rss$ rss.php [L]
RewriteRule ^zonglovani.xml$ rss.php?v=2 [L]