Setting up SSL https on a grav site

Setting up SSL https on a grav site

In the Grav docs under the system config it says:

“force_ssl: If enabled, Grav forces to be accessed via HTTPS (NOTE: Not an ideal solution). Can be true or false.”

Is there any further information on this? why is this not an ideal solution? what is a better solution? This solution appears to work - but does it have implications for SEO or other issues?

many thanks

The ideal solution is to enforce HTTPS through the server, via .htaccess in the case of Apache. Setting it through the server is more universally applicable, and can conflict with the force_ssl setting.

Thanks OleVik - appreciate the response :slight_smile: