Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Http to https redirect issue

Started by Ian 1 year ago · 3 replies · 498 views
1 year ago

If I use http rather than https to access my site grav is redirecting to https but it appends index.php to the end of the URL and then gives page not found.

I can’t get my head around where this behaviour is occuring. I’m using grav standard .htaccess file without modification - but there is not http redirect there

In the Admin panel I have tried changing the Session settings Secure and Secure (HTTPS) but neither seem to do anything (with both off it is still redirecting http to https) even after clearing the cache.

Anywhere else I need to be looking?

1 year ago

Trying again this morning it seems that the redirect to index.php was a browser caching issue not a gravid caching issue, so my http to https redirect is now working nicely.

I’m still none the wiser as to where it is happening though as changing the Session settings mentioned above still appears to do nothing (unless that is also a cache issue somewhere, but I have tested in different browsers with incognito windows).

1 year ago

@Slartibartfast, check the following parameter in admin Configuration > System > Advanced > Miscellaneous Section > Force SSL (Yes/No)

1 year ago

Thanks - I had tried that one already. I think that the issue is somewhere in the way that chrome caches the site. If I set all the secure options false and clear the grav cache chrome still redirects http to https in an incognito session. Safari, interestingly does not. And it does seem that the force_ssl true changes that for Safari.

Anyway; as I say I’m happy insofar as the behaviour is what I need (ie no http), just still intrigued as to why chrome always goes to https even when as far as I can tell it shouldn’t

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago