]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/trac/templates/default/apache.erb
Fix demised site redirect
[chef.git] / cookbooks / trac / templates / default / apache.erb
index f8f898e2a3888a4dacd3f426613d363badbd7c74..5e1fc01df5a7acdf62ba02df28c90c728074b759 100644 (file)
@@ -47,6 +47,5 @@
   RewriteEngine on
   RewriteMap tickets txt:/srv/trac.openstreetmap.org/tickets.map
   RewriteRule ^/ticket/(\d+)$ https://github.com/openstreetmap/trac-tickets/issues/${tickets:$1}
-
-  ErrorDocument 404 https://github.com/openstreetmap/trac-tickets
+  RewriteRule ^/?(.*) https://github.com/openstreetmap/trac-tickets [L,R=permanent]
 </VirtualHost>