]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/subversion/templates/default/apache.erb
Fix demised site redirect
[chef.git] / cookbooks / subversion / templates / default / apache.erb
index 49c1e1eba94a9b66f0aabce894ad0d109dec74fb..987d50930fd6872d7db10d177b3707036b2d0f34 100644 (file)
@@ -12,7 +12,9 @@
   ErrorLog /var/log/apache2/<%= @name %>-error.log
 
   RedirectPermanent /applications/editors/josm/plugins/cadastre-fr/images/cadastre_small.png https://raw.githubusercontent.com/openstreetmap/svn-archive/main/applications/editors/josm/plugins/cadastre-fr/images/cadastre_small.png
-  ErrorDocument 404 https://github.com/openstreetmap/svn-archive
+
+  RewriteEngine on
+  RewriteRule ^/?(.*) https://github.com/openstreetmap/svn-archive [L,R=permanent]
 
 </VirtualHost>
 <% unless @aliases.empty? -%>