/
.htaccess
37 lines (33 loc) · 1.31 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
<IfModule mod_headers>
Header set X-Frame-Options: "ALLOW-FROM https://www.rimkus.it/www_rimkus/index.php?action=act_music"
Header always set Content-Security-Policy "frame-ancestors 'self' localhost ;"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
## page navigation for better url for better crawling results
RewriteRule ^video(.*) /
RewriteRule ^topsongs(.*) /
RewriteRule ^users(.*) /
RewriteRule ^lastfm(.*) /
RewriteRule ^personal(.*) /
</IfModule>
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access 2 month"
ExpiresByType image/gif "access 2 month"
ExpiresByType image/jpeg "access 2 month"
ExpiresByType image/png "access 2 month"
ExpiresByType text/css "access 2 month"
ExpiresByType application/x-javascript "access plus 2 month"
ExpiresByType text/javascript "access plus 2 month"
ExpiresByType application/javascript "access plus 2 month"
ExpiresByType image/x-icon "access plus 12 month"
ExpiresByType image/icon "access plus 12 month"
ExpiresByType application/x-ico "access plus 12 month"
ExpiresByType application/ico "access plus 12 month"
</IfModule>