]> git.openstreetmap.org Git - chef.git/commitdiff
Use 308 redirect to keep IDN POST parameters
authorGuillaume Rischard <git@stereo.lu>
Wed, 6 Mar 2024 23:53:42 +0000 (18:53 -0500)
committerGitHub <noreply@github.com>
Wed, 6 Mar 2024 23:53:42 +0000 (18:53 -0500)
With many thanks to @MegaphoneJon for the precious help!

cookbooks/civicrm/templates/default/apache.erb

index 727b0b9132c56d1c988c89e5582ef0b73e698dee..d70a6eab12f6877195ad06d284f8921c6e1a1768 100644 (file)
@@ -24,7 +24,7 @@
   SSLCertificateKeyFile /etc/ssl/private/join.osmfoundation.org.key
 <% end -%>
 
-  RewriteRule ^/(.*)$ https://supporting.openstreetmap.org/$1 [R=permanent,L]
+  RewriteRule ^/(.*)$ https://supporting.openstreetmap.org/$1 [R=308,L]
 
   CustomLog /var/log/apache2/join.osmfoundation.org-access.log combined
   ErrorLog /var/log/apache2/join.osmfoundation.org-error.log