WebSite X5Help Center

 
Dave Self
Dave Self
User

Change website to point to secure site domain  en

Autor: Dave Self
Visitado 2151, Followers 1, Compartido 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

Publicado en
13 RESPUESTAS
Dave Self
Dave Self
User
Autor

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.

Leer más
Publicado en de Dave Self
Andre E
Andre E
Moderator

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.

Leer más
Publicado en de Andre E
Dave Self
Dave Self
User
Autor

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

Leer más
Publicado en de Dave Self
Dave Self
Dave Self
User
Autor

i get this error now when trying to upload the site

Leer más
Publicado en de Dave Self
Esahc ..
Esahc ..
Moderator

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.

Leer más
Publicado en de Esahc ..
Dave Self
Dave Self
User
Autor

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?

Leer más
Publicado en de Dave Self
Esahc ..
Esahc ..
Moderator

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.

Leer más
Publicado en de Esahc ..
Dave Self
Dave Self
User
Autor

Hi Esahc ..

I managed to get the host company to change the code.

Cheers

Leer más
Publicado en de Dave Self
Esahc ..
Esahc ..
Moderator

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).

Leer más
Publicado en de Esahc ..
Andre E
Andre E
Moderator

Your host portal should also work.

Leer más
Publicado en de Andre E