https

Permalink 1 user found helpful
Hello,

I would like to pass my site in https. With concrete5 how does one do? I have already activated the option at my host.

 
lukasznillo replied on at Permalink Reply
lukasznillo
Hi
Try this
This is my code of .htaccess an redirect from non www to www with SSL

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME}/index.html !-f
   RewriteCond %{REQUEST_FILENAME}/index.php !-f
   RewriteRule . index.php [L]
</IfModule>
fabriqueamusique replied on at Permalink Reply
C'est mieux, mais Firefox me dit que certains éléments (comme les photos) ne sont pas sécurisés
fabriqueamusique replied on at Permalink Reply
Excuse me!
It's better, but Firefox tells me that some elements (like photos) are not secure and I think the site is slower ...https://www.fabriqueamusique.fr/...
lukasznillo replied on at Permalink Reply
lukasznillo
Yes because this files uses http in source url. Try edit in code your site url to this image and everything should work correctly. If they are pasted by, for example, a block of content, try to preview the block code and check if http is there and change to https.
lukasznillo replied on at Permalink Reply 1 Attachment
lukasznillo
See scrennshot. I edit live by develoepr tools in chrome url source of image to https and this working. Image load.
fabriqueamusique replied on at Permalink Reply
Change the htaccess, i do not feel that this is the right solution, I no longer have access to the site ...
lukasznillo replied on at Permalink Reply
lukasznillo
This code of htacess i uses in many sites but in apache. You have enable Friendy URL? Have NGINX ?
fabriqueamusique replied on at Permalink Reply
I do not even have access by fillezila to the site ...
lukasznillo replied on at Permalink Reply
lukasznillo
Check log's on serwer.
fabriqueamusique replied on at Permalink Reply
I contacted my host OVH, they can I think I can help ...
fabriqueamusique replied on at Permalink Reply
I got the site, it must have been another problem.
On the other hand, OVH tells me to make my site compatible with the SSL certificate in concrete5.
How do you do it?
lukasznillo replied on at Permalink Reply
lukasznillo
If you have note in browser: "Some elements of this page (e.g., the picture) were not sent in a safe way" you must only change url to this files in code with https, no http. Look my attachment in previous massage.
fabriqueamusique replied on at Permalink Reply
On the first page, I just controlled, concrete5 automatically put https and yet is not secure ...

"Redirects and URLs" I have to put what?
lukasznillo replied on at Permalink Reply
lukasznillo
XiTi img in left bottom. It's img load from http url.
fabriqueamusique replied on at Permalink Reply
It works !!!

It was in the tracking code.

Thank you so much !!!