How to convert my website from http to htpps
Autor: Regina O.
Visitado 1540,
Followers 2,
Compartido 0
Please advise me how to convert my website www.sligofeisceoil.ie from //http to //htpps .
Unfortunately, the redirect is not handled by our host which is Blacknight.com
Regards
Regina O Dea
Publicado en
Régina,
Voici la procédure à suivre. Elle se fait en 4 étapes : activation du certificat SSL (1/), changement URL dans le logiciel (2/), création d'un fichier htaccess.txt (3/), ajout du fichier .htaccess sur votre serveur (4/). En détail :
1/ Chez votre hébergeur : activez le certificat SSL de votre hébergement (gratuit chez certains hébergeurs)
(Certains hébergeurs donnent la procédure pour le passage en https)
2/ Dans WX5, à l'étape 1 (paramètres), modifiez l'url de votre site http devient https et mettez votre site en ligne
3/ Ouvrez l'application bloc-notes et copiez le a/ ou le b/
a/ pour les url avec www :
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$https://www.votre-domaine.fr/$1 [R=301,L]
et le nommer htaccess.txt
b/ pour les url sans www :
- copiez ce texte dans le bloc notes
RewriteEngine On
RewriteCond %{HTTP_HOST} !^votre-domaine\.fr$ [NC,OR]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://votre-domaine.fr/$1 [R=301,L]
et le nommer htaccess.txt
4/ Ouvrez Filezilla (ou autre)
- ajoutez ce fichier htaccess.txt à la racine de votre site sur le serveur
- ensuite, le renommer .htaccess
Voilà : votre site est en https et toutes les url sont redirigées sur votre site sécurisé !
Cordialement,
Danielle
Hi Regina,
The change from HTTP to HTTPS can be completed by contacting the hosting's support, which will take care of turning your website into its more secure version.
As far the software configuration goes, you need only to change the URL set at Step 1 from http to https, export the website anew, and you should be good to go.
In case you need more specific redirect functions, Danielle gave a very good prompt to this, but I will provide a quick translation in english of that here:
"Here is the procedure to follow. It is done in 4 steps: activation of the SSL certificate (1 /), change URL in the software (2 /), creation of a file htaccess.txt (3 /), addition of the .htaccess file on your server (4 / ). In detail :
1 / At your host: activate the SSL certificate of your hosting (free at some hosts)
(Some hosts give the procedure for the passage in https)
2 / In WX5, in step 1 (settings), change the URL of your http site to https and put your site online
3 / Open the notepad application and copy the a / or the b /
a / for url with www:
RewriteEngine On
RewriteCond% {HTTP_HOST}! ^ Www \. [NC, OR]
RewriteCond% {SERVER_PORT}! ^ 443 $
RewriteRule ^ (. *) $ Https: //www.your-domain.com/$1 [R = 301, L]
and name it htaccess.txt
b / for url without www:
- copy this text in the notepad
RewriteEngine On
RewriteCond% {HTTP_HOST}! ^ Your-domain \ .fr $ [NC, OR]
RewriteCond% {SERVER_PORT}! ^ 443 $
RewriteRule ^ (. *) $ Https://your-domain.com/$1 [R = 301, L]
and name it htaccess.txt
4 / Open Filezilla (or other)
- add this htaccess.txt file to the root of your site on the server
- then, rename it .htaccess
Voilà: your site is https and all url are redirected to your secure site!
Please let me know if you manage to get this right
Thank you
Stefano