typemill / typemill

Typemill is a lightweight, flat-file CMS designed for simple, fast, and flexible website and eBook creation using Markdown.
https://typemill.net
MIT License
427 stars 60 forks source link

Stuck in redirect loop when enabling HTTPS redirect on htaccess #372

Open cavanbecksmith opened 1 year ago

cavanbecksmith commented 1 year ago

Hello,

I've done a fresh apache install on Linux and have noticed whenever I try to force the site to use https I get stuck in a redirect loop when enabling the below .htaccess condition. This also happened when I tried a perma redirect from within the apache configuration.

# Use this to redirect HTTP to HTTPS on apache servers
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

From chrome I receive the error message ERR_TOO_MANY_REDIRECTS and if I keep the page open it's flooded with requests to the same page again and again

When I have this condition disabled I can use the site over https however it doesn't look like the any of the POST requests or frontend api requests have any knowledge of it being https. It only serves the GET requests over https.

E.G

I also can't see any option for manually changing the base URL, Please can you advise on where I may find this