-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
82 lines (74 loc) · 3.79 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
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . - [L]
RewriteCond %{QUERY_STRING} g2_view=core.DownloadItem
RewriteCond %{QUERY_STRING} g2_itemId=([0-9]+)
RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9\+\.\-]+://fotos.arxiuhistoricpoblenou.cat/ [NC]
RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9\+\.\-]+://fotos.arxiuhistoricpoblenou.es/ [NC]
RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9\+\.\-]+://fotos.arxiuhistoricpoblenou.cat/ [NC]
RewriteCond %{HTTP:Referer} !^$
RewriteRule . /main.php?g2_view=rewrite.DownloadItem&g2_itemId=%1 [L]
RewriteCond %{QUERY_STRING} g2_view=core.DownloadItem
RewriteCond %{QUERY_STRING} g2_itemId=([0-9]+)
RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9\+\.\-]+://fotos.arxiuhistoricpoblenou.cat/ [NC]
RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9\+\.\-]+://fotos.arxiuhistoricpoblenou.es/ [NC]
RewriteCond %{HTTP:Referer} !^[a-zA-Z0-9\+\.\-]+://fotos.arxiuhistoricpoblenou.cat/ [NC]
RewriteCond %{HTTP:Referer} !^$
RewriteRule . /main.php?g2_view=watermark.DownloadItem&g2_itemId=%1 [L]
RewriteCond %{THE_REQUEST} /aleatorio(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=dynamicalbum.RandomAlbum [QSA,L]
RewriteCond %{THE_REQUEST} /populares(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=dynamicalbum.PopularAlbum [QSA,L]
RewriteCond %{THE_REQUEST} /sitemap(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=sitemap.Sitemap [QSA,L]
RewriteCond %{THE_REQUEST} /ultimos(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=dynamicalbum.UpdatesAlbum [QSA,L]
RewriteCond %{THE_REQUEST} /admin/(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=core.SiteAdmin [QSA,L]
RewriteCond %{THE_REQUEST} /download/([0-9]+)\-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /comentario/ver/([0-9]+)\.html(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=comment.ShowAllComments&g2_itemId=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /fotografia/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /mapa/(G{1}[0-9]+)*(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=map.ShowMap&g2_Group=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /palabras/([^?/]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=keyalbum.KeywordAlbum&g2_keyword=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /rss/([^\/\?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=rss.Render&g2_name=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /srss/([0-9]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=rss.SimpleRender&g2_itemId=%1 [QSA,L]
</IfModule>
# END Url Rewrite section
<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault A30600
</ifmodule>
<filesmatch ".(jpg|JPG|gif|GIF|png|css|ico|js|gz|gzip|swf)$">
<ifmodule mod_headers.c>
Header append Cache-Control "public"
</ifmodule>
<ifmodule mod_expires.c>
ExpiresDefault "access plus 7 day"
</ifmodule>
</filesmatch>