-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
102 lines (99 loc) · 3.89 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/opentype
# For Olders Browsers Which Can't Handle Compression
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
# Redirect to HTTPS
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Change file names
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^home.html$ /index.php [NC,L]
RewriteRule ^the-best-hotels-in-neum.html$ /hotels.php [NC,L]
RewriteRule ^Hotel-Villa-Matic.html$ /matic.php [NC,L]
#
RewriteRule ^the-best-apartments-in-neum.html$ /apartments.php [NC,L]
RewriteRule ^Apartments-Mampas.html$ /mampas.php [NC,L]
RewriteRule ^Apartments-Liberan.html$ /liberan.php [NC,L]
#
RewriteRule ^the-best-villas-in-neum.html$ /ville.php [NC,L]
RewriteRule ^villa-lasic-neum.html$ /lasic.php [NC,L]
#
RewriteRule ^the-best-rooms-in-neum.html$ /rooms.php [NC,L]
#
RewriteRule ^the-best-homes-in-neum.html$ /homes.php [NC,L]
RewriteRule ^holiday-home-blanka.html$ /blanka.php [NC,L]
#
RewriteRule ^the-best-restaurants-in-neum.html$ /restaurants.php [NC,L]
#
#RewriteRule ^Brod-Ivana-Neum.html$ /brod.php [NC,L]
#
RewriteRule ^rent-a-car-neum.html$ /rent_a_car.php [NC,L]
#RewriteRule . /visit-neum/index.php [L]
#
ErrorDocument 404 /error404.html
RewriteRule ^error404.html$ /404.php [NC,L]
Options -Indexes
ErrorDocument 403 /error403.html
RewriteRule ^error403.html$ /403.php [NC,L]
# Save cache
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Images
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
# Video
ExpiresByType video/webm "access plus 1 year"
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/mpeg "access plus 1 year"
# Fonts
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType font/otf "access plus 1 year"
ExpiresByType font/woff "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
# CSS, JavaScript
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
# Others
ExpiresByType application/pdf "access plus 1 year"
ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit