RewriteEngine on
RewriteMap tickets txt:/srv/trac.openstreetmap.org/tickets.map
RewriteRule ^/ticket/(\d+)$ https://github.com/openstreetmap/trac-tickets/issues/${tickets:$1}
- RewriteRule ^/?(.*) https://github.com/openstreetmap/trac-tickets [L,R=permanent]
+ RewriteRule ^/?(.*) https://github.com/openstreetmap/trac-tickets [QSD,L,R=permanent]
</VirtualHost>