-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess_tga
executable file
·154 lines (146 loc) · 14.6 KB
/
.htaccess_tga
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
ErrorDocument 403 /errors/403error.shtml
ErrorDocument 404 /errors/404error.shtml
ErrorDocument 500 /errors/500error.shtml
<Files ~ "^\.ht">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
IndexIgnore *
Options -Indexes +FollowSymLinks
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/shtml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
Header add Access-Control-Allow-Origin "*"
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://www.thomasgray.org/$1 [R=301,L]
RewriteRule contacts /about/#contact [L,R=301,NE]
RedirectMatch 301 /materials/(.*) /resources/$1
RedirectMatch 301 /site/(.*) /about/$1
RedirectMatch 301 /texts/concordance.shtml /resources/concordance.shtml
RedirectMatch 301 /texts/findaid.shtml /resources/findaid.shtml
RedirectMatch 301 /about/sitemap.shtml /help/sitemap.shtml
RewriteRule ^texts/poems/([a-zA-Z0-9_]+)$ /cgi-bin/display.cgi?text=$1 [NE,L,PT]
RewriteRule ^texts/letters/([a-zA-Z0-9_]+)$ /cgi-bin/display.cgi?text=$1 [NE,L,PT]
RewriteRule ^texts/diglib/secondary/([a-zA-Z0-9_]+)/(\d+)/([a-z0-9_]+)$ /cgi-bin/view.cgi?collection=secondary&edition=$1&part=$2&page=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt01)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt02)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt03)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt04)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt05)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt06)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt07)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt08)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt09)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt10)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt11)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt12)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt13)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt14)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt15)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt16)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt17)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt18)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt19)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt20)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt21)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt22)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt23)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt24)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lt25)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(inaw)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(agtr)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(aleg)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(bapo)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(cand)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(cara)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(chcc)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(cona)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(coub)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(deho)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(dooo)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(elcc)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(epld)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(epmc)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(epmm)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(epww)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(fsio)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(hyig)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(imp2)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(imp3)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(impr)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(inma)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lobt)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lods)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(log3)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lojd)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(lost)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(ocmu)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(odec)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(odfc)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(oopv)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(oots)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(otad)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(oxst)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(pare)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(pppo)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(sahh)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(skoc)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(sng1)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(sng2)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(sorw)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(stbe)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(tapr)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(tdin)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(tra6)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(tra9)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(trgl)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(trow)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(vsfr)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/(wsma)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)/(\d+)/([a-z0-9_]+)$ /cgi-bin/view.cgi?collection=primary&edition=$1&part=$2&page=$3 [NE,L,PT]
RewriteRule ^texts/diglib/secondary/([a-zA-Z0-9_]+)/(\d+)/(\D+)$ /cgi-bin/view.cgi?collection=secondary&edition=$1&part=$2&text=$3 [NE,L,PT]
RewriteRule ^texts/diglib/primary/([a-zA-Z0-9_]+)$ /cgi-bin/view.cgi?collection=primary&edition=$1 [NE,L,PT]
RewriteRule ^texts/diglib/secondary/([a-zA-Z0-9_]+)$ /cgi-bin/view.cgi?collection=secondary&edition=$1 [NE,L,PT]
RewriteRule ^resources/findaid/poems/work/([a-zA-Z0-9_]+)$ /cgi-bin/findaid.cgi?ead=grayt.ead.0001&collection=poems&work=$1 [NE,L,PT]
RewriteRule ^resources/findaid/intro$ /cgi-bin/findaid.cgi?ead=grayt.ead.0001&intro=true [NE,L,PT]
RewriteRule ^resources/concordance/eng/letter/([A-Z])/occur$ /cgi-bin/search.cgi?letters=$1&lang=eng&sortby=occur [NE,L,PT]
RewriteRule ^resources/concordance/lat/letter/([A-Z])/alpha$ /cgi-bin/search.cgi?letters=$1&lang=lat&sortby=alpha [NE,L,PT]
RewriteRule ^resources/concordance/eng/letter/([A-Z])/alpha$ /cgi-bin/search.cgi?letters=$1&lang=eng&sortby=alpha [NE,L,PT]
RewriteRule ^resources/concordance/lat/letter/([A-Z])/occur$ /cgi-bin/search.cgi?letters=$1&lang=lat&sortby=occur [NE,L,PT]
RewriteRule ^resources/concordance/eng/letter/([A-Z])$ /cgi-bin/search.cgi?letters=$1&lang=eng [NE,L,PT]
RewriteRule ^resources/concordance/lat/letter/([A-Z])$ /cgi-bin/search.cgi?letters=$1&lang=lat [NE,L,PT]
RewriteRule ^resources/concordance/eng/list/(\d+)/up$ /cgi-bin/search.cgi?occurlist=$1&lang=eng&sortby=up [NE,L,PT]
RewriteRule ^resources/concordance/lat/list/(\d+)/up$ /cgi-bin/search.cgi?occurlist=$1&lang=lat&sortby=up [NE,L,PT]
RewriteRule ^resources/concordance/eng/list/(\d+)/dn$ /cgi-bin/search.cgi?occurlist=$1&lang=eng&sortby=dn [NE,L,PT]
RewriteRule ^resources/concordance/lat/list/(\d+)/dn$ /cgi-bin/search.cgi?occurlist=$1&lang=lat&sortby=dn [NE,L,PT]
RewriteRule ^resources/concordance/eng/list/(\d+)$ /cgi-bin/search.cgi?occurlist=$1&lang=eng [NE,L,PT]
RewriteRule ^resources/concordance/lat/list/(\d+)$ /cgi-bin/search.cgi?occurlist=$1&lang=lat [NE,L,PT]
RewriteRule ^resources/findaid/collection=(.*?)$ /cgi-bin/findaid.cgi?ead=grayt.ead.0001&collection=$1 [NE,L,PT]
RewriteRule ^resources/findaid/([a-zA-Z0-9_]*)$ /cgi-bin/findaid.cgi [NE,L,PT]
RewriteRule ^texts/letters/collection=(.*)$ /cgi-bin/display.cgi?collection=$1 [NE,L,PT]
RewriteRule ^texts/letters/$ /cgi-bin/display.cgi [NE,L,PT]
RewriteRule ^resources/search/$ /cgi-bin/search.cgi [NE,L,PT]
RewriteRule ^texts/diglib/$ /cgi-bin/view.cgi [NE,L,PT]