Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Typing subpages with forced SSL redirect end up 404'ing (htaccess issue?)

Started by Muut Archive 9 years ago · 1 replies · 563 views
9 years ago

I'm using the following in my .htaccess to force SSL:

TXT
# Redirect to HTTPS
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
## End - Index

However, I'm running into an issue with subpages. For example,

TXT
"example.com" --> "https://www.example.com"

without issue, but any subpage like typing

TXT
"example.com/about-us" --> 404 "https://www.example.com/index.php"

This is even the case for straight www URLs without the "https", which is why I assume it may have to do with how I'm handling the redirects.

I'm admittedly not that well versed with the .htaccess file, but does this seem like something to do with that or something to do with my certificates or other grav-level settings? Thanks in advance!

9 years ago

Anyone have any ideas on this one? Thanks!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4024 9 years ago
Archive · by Muut Archive, 9 years ago
1 2900 9 years ago
Archive · by Muut Archive, 9 years ago
3 1082 9 years ago