forked from WebarchivCZ/WWW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
executable file
·34 lines (27 loc) · 1.13 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
# Apache configuration file (see httpd.apache.org/docs/2.2/mod/quickreference.html)
# disable directory listing
#Options -Indexes
# enable cool URL
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteLog /mnt/wayback/www-root-rewrite.log
RewriteBase /
# RewriteCond %{HTTP_HOST} ^wayback.webarchiv.cz
# RewriteRule ^(.*)$ http://wayback.webarchiv.cz/$1 [L,NC,QSA]
RewriteRule ^file_download/12/smlouvaWebarchiv.doc http://wayback.webarchiv.cz/files/smlouvaWebarchiv.doc
# front controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
</IfModule>
# enable gzip compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
</IfModule>
# allow combined JavaScript & CSS. Inside of script.combined.js you could use <!--#include file="script.js" -->
<IfModule mod_include.c>
<FilesMatch "\.combined\.(js|css)$">
#Options +Includes
#SetOutputFilter INCLUDES
</FilesMatch>
</IfModule>