WebSite X5Help Center

 
BENKAROUN M.
BENKAROUN M.
User

Https  fr

Autor: BENKAROUN M.
Visited 1539, Followers 1, Udostępniony 0  

Bonjour,

Je voudrais passer mon site en https !

J'ai déjà acivé l'option chez mon hébergeur, mais je ne connais pas la procédure sous Website X5 pro ?

Merci de votre retour

Posted on the
3 ODPOWIEDZI - 2 USEFUL - 1 PRAWIDłOWA ODPOWIEDź
Xavier GREGOIRE
Xavier GREGOIRE
User

Voici les infos à mettre dans le ".htaccess"

#First rewrite any request to the wrong domain to use the correct one (here www.)
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#Now, rewrite to HTTPS:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

#RewriteEngine On
#RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
#RewriteCond %{SERVER_PORT} !^443$
#RewriteRule ^(.*)$ https://www.tonsite.com/$1 [R=301,L]


#RewriteEngine On
#RewriteCond %{HTTP_HOST} !^tonsite.com\.com$ [NC,OR]
#RewriteCond %{SERVER_PORT} !^443$
#RewriteRule ^(.*)$ https://tonsite.com/$1 [R=301,L]

Czytaj więcej
Posted on the from Xavier GREGOIRE
BENKAROUN M.
BENKAROUN M.
User
Autor

Merci pour le retour !

Pour être sur, je modifie seulement les lignes (www.tonsite.com) ?

#First rewrite any request to the wrong domain to use the correct one (here www.)
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#Now, rewrite to HTTPS:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

#RewriteEngine On
#RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
#RewriteCond %{SERVER_PORT} !^443$
#RewriteRule ^(.*)$ https://www.tonsite.com/$1 [R=301,L]


#RewriteEngine On
#RewriteCond %{HTTP_HOST} !^tonsite.com\.com$ [NC,OR]
#RewriteCond %{SERVER_PORT} !^443$
#RewriteRule ^(.*)$ https://tonsite.com/$1 [R=301,L]

Czytaj więcej
Posted on the from BENKAROUN M.
Xavier GREGOIRE
Xavier GREGOIRE
User

oui

Czytaj więcej
Posted on the from Xavier GREGOIRE