Change website to point to secure site domain
Auteur : Dave Self
Visité 2741,
Followers 1,
Partagé 0
Hi, I have now got an active SSL certificate linked to a domain for a website I have built.
How do I upload the existing (unsecure) site to the new https: site.
I have change the intial website address at the start adding the https:// and uploaded the site but when browsing it always defers to the unsecure site when loading not the new secure one. The only way to get to the secure one is to type the address in manually.
Thanks for any help with this.
Dave
Posté le
You need to create a .htacces file, your provider can help you, google as well.
I can elaborate here, but there are more topics on this already so,
see also:
https://helpcenter.websitex5.com/fr/post/193532
https://helpcenter.websitex5.com/fr/post/202870 dutch but with code.
https://helpcenter.websitex5.com/fr/post/197234
Auteur
Hi Andre, sorry but still unsure what to do.
The site is hosted by 123Reg.co.uk
Not sure where to input HTAccess or what to enter.
Has anyone solved this that is hosted by 123Reg.co.uk?
I asked them and they said i had to do it in my website builder.
Thanks for any help.
Dave
you need to create an .htacces file, this is a file where you can give a command to the webbrowser of your visitor to not use th http site but go to the https site.
This is the best way to create this.
use notepad, set the code in there, save the file with no extension, this is importand.
so the files name starts with a dot then htaccess and nothing more.
Put this code in the file:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Again take care that you use no format so just the dot and the name.
goto settings in step1, then select ADVANCED TAB. Then select statistics and code, select Expert TAB.
add this file in files linked to html
delete the path on server (make it blank)
press ok and upload.
If it does not work check other advices / codes on internet there are plenty of them one should be able to get this working.
Mostly you can see and work this file also from your hosting panel, also there are plenty examples on internet.
very sorry that your host is not more cooperative, they should know this.
https://serverguy.com/servers/redirect-http-to-https/
https://www.ndchost.com/wiki/apache/redirect-http-to-https
again not all codes are alike and work, just try and see, normaly the webhost can tell you what works.
https://www.123-reg.co.uk/support/hosting/creating-a-website-redirect-in-your-hosting-package/
Auteur
Hi Andre, I have put the code in exactly as you said and uploaded, now the website wont load at all in Google,
I have tried uploading again from a backup and it still wont load.
Any ideas how Ican get it back?
Thanks
www.mdtappbuilders.co.uk
Auteur
i get this error now when trying to upload the site
Dave, open .htaccess copy the content and paste it here. We should be able to provide the amendments so you can paste it back.
To (hopefully) allow immediate access to your existing site, simply rename .htaccess on your host.
Auteur
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Auteur
is there not a walk through on how to do this in X5 as lots of sites will be converting to secure sites due to Google?
RewriteEngine On
RewriteCond %{HTTPS} !=on
Try this line:-
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
(works for me :-)
This is not part of WX5, this is to do with your hosting and is relevant only to linux based hosting I believe.
Auteur
Hi Esahc ..
I managed to get the host company to change the code.
Cheers
Dave, glad you got it working, but for future reference, this is really simple to do using FileZilla or similar. In FileZilla you simply right click on .htaccess, edit and save (after making a copy in case of catastrophe).
Your host portal should also work.