diydeveloper / cms-canvas

Laravel CMS
36 stars 33 forks source link

how to use https #16

Closed elpoleto closed 7 years ago

elpoleto commented 8 years ago

Hi, is there any way to make cms canvas use https? i tried to config htaccess but i gaet a loop redirect. it seems that the program force http only

elpoleto commented 8 years ago

even if i force site_url in config i get a redirect loop

KeiroD commented 8 years ago

Have you tried the following .htaccess rules:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

This should work for you as it'd allow you to force SSL. I'll be testing this soon, myself.