-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
61 lines (47 loc) · 2.82 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
RewriteEngine on
RewriteBase /
### OPENCACHING waypoints
##########################################################################
# opencaching.RO
RewriteRule ^(OR[0-9A-Z]{4,6})$ http://www.opencaching.ro/viewcache.php?wp=$1 [R=301,L,NC]
RewriteRule ^OR/U/([0-9]{1,6})$ http://www.opencaching.ro/viewprofile.php?userid=$1 [R=301,L,NC]
# opencaching.PL
RewriteRule ^(OP[0-9A-Z]{4,6})$ http://opencaching.pl/viewcache.php?wp=$1 [R=301,L,NC]
RewriteRule ^OP/U/([0-9]{1,6})$ http://www.opencaching.ro/viewprofile.php?userid=$1 [R=301,L,NC]
# opencaching.NL
RewriteRule ^(OB[0-9A-Z]{4,6})$ http://www.opencaching.nl/viewcache.php?wp=$1 [R=301,L,NC]
RewriteRule ^OB/U/([0-9]{1,6})$ http://www.opencaching.ro/viewprofile.php?userid=$1 [R=301,L,NC]
# opencaching.DE opencaching.IT opencaching.FR opencachingspain.ES
RewriteRule ^(OC[0-9A-Z]{4,6})$ http://www.opencaching.de/viewcache.php?wp=$1 [R=301,L,NC]
RewriteRule ^OC/U/([0-9]{1,6})$ http://www.opencaching.ro/viewprofile.php?userid=$1 [R=301,L,NC]
# opencache.UK
RewriteRule ^(OK[0-9A-Z]{4,6})$ http://opencache.uk/viewcache.php?wp=$1 [R=301,L,NC]
RewriteRule ^OK/U/([0-9]{1,6})$ http://www.opencaching.ro/viewprofile.php?userid=$1 [R=301,L,NC]
# opencaching.US
RewriteRule ^(OU[0-9A-Z]{4,6})$ http://www.opencaching.us/viewcache.php?wp=$1 [R=301,L,NC]
RewriteRule ^OU/U/([0-9]{1,6})$ http://www.opencaching.ro/viewprofile.php?userid=$1 [R=301,L,NC]
# opencaching.CZ
RewriteRule ^(OZ[0-9A-Z]{4,6})$ http://www.opencaching.cz/viewcache.php?wp=$1 [R=301,L,NC]
RewriteRule ^OZ/U/([0-9]{1,6})$ http://www.opencaching.ro/viewprofile.php?userid=$1 [R=301,L,NC]
### Trackables
##########################################################################
# geokrety.org
RewriteRule ^GK([0-9A-F]{4,5})$ https://geokrety.org/konkret.php?id=${hex2dec:$1} [R=301,L,NC]
# Log a geokrety
RewriteRule ^GK/([0-9A-Z]{6})$ https://geokrety.org/ruchy.php?nr=$1 [R=301,L,NC]
### GEOCACHING.com
##########################################################################
# geocaching.com Geocache
RewriteRule ^(GC[0-9A-Z]{1,6})$ https://coord.info/$1 [R=301,L,NC]
# View log
RewriteRule ^GC/(GL[0-9A-Z]{1,8})$ https://coord.info/$1 [R=301,L,NC]
# View user profile
# Documentation : https://www.geocaching.com/help/index.php?pg=kb.chapter&id=27&pgid=115
# But this reflects only the latest policy, which is rather restrictive.
#RewriteRule ^GC/U/([0-9A-Z\-_\.äöüëïÿæœßáéíóúýàèìòùâêîôûçñåůčěňřšžťøď]{2,20})$ https://www.geocaching.com/track/details.aspx?tracker=$1 [R=301,L,NC]
# geocaching.com TravelBug & Geocoin
RewriteRule ^(TB[0-9A-Z]{1,6})$ https://coord.info/$1 [R=301,L,NC]
# Find trackable based on tracking code
RewriteRule ^TB/([0-9A-Z]{6})$ https://www.geocaching.com/track/details.aspx?tracker=$1 [R=301,L,NC]
# View trackable log
RewriteRule ^TB/(TL[0-9A-Z]{1,8})$ https://coord.info/$1 [R=301,L,NC]