if you have to redirect a site that has hard links in it, and it's difficult or impossible to change the source (such as when using clickfunnels), you could find your forms broken because the POST gets converted to a GET.

this can be fixed by changing the Apache status code from the default 302 to 307.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\com$ [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=307,L]

Back to blog or home page

last updated 2018-12-26 12:44:04. served from tektonic