[tor-bugs] #18893 [Metrics/Globe]: Redirect Globe requests to Atlas

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Apr 26 08:19:41 UTC 2016


#18893: Redirect Globe requests to Atlas
---------------------------+----------------------
 Reporter:  karsten        |          Owner:  isis
     Type:  enhancement    |         Status:  new
 Priority:  Medium         |      Milestone:
Component:  Metrics/Globe  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+----------------------

Comment (by saint):

 If you are planning to continue using Apache, it's possible to do this
 with `mod_rewrite` (even with anchors).  For anchor links, it requires the
 `NE` flag with a 301 http code.  This will keep Apache from converting #
 into its hex equivalent.

 So something like:
 {{{
 RewriteEngine On

 Rewrit­eCond %{HTTP­_HOST} ^globe.torproject.org/#/relay/(.*)$ [NC]
 RewriteRule ^atlas.torproject.org/#details/$1[NE,R=301]

 Rewrit­eCond %{HTTP­_HOST} ^globe.torproject.org/#/search/query=(.*)$ [NC]
 RewriteRule ^atlas.torproject.org/#search/$1[NE,R=301]

 }}}

 should work.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18893#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list