WebSite X5Help Center

 
Supaporn B.
Supaporn B.
User

Change to https  en

Auteur : Supaporn B.
Visité 635, Followers 2, Partagé 0  

I have already purchased ssl And I changed the website name to https but it looks like I have 2 websites: https and http
What should I do to get the browser to navigate from http to https, which I have already followed the instructions in support but does not seem to work?

Posté le
14 RéPONSES - 2 UTILE
X5 Croatia
X5 Croatia
User

Use bouth version... My opinion...

Lire plus
Posté le de X5 Croatia
Supaporn B.
Supaporn B.
User
Auteur

Thank you for your reply. But I not understand bouth version. 

Lire plus
Posté le de Supaporn B.
Aleksej H.
Aleksej H.
Moderator

Hello.

"What should I do to get the browser to navigate from http to https" - You need to create a ".htaccess" file in the root folder of the site.

.htaccess - pay attention to the file name. It begins with a dot, and it has no extension.

Put the following lines in this file:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Please note that depending on your hosting you may need to specify another option.This can be found in the technical support of your hosting provider.

Lire plus
Posté le de Aleksej H.
Aleksej H.
Aleksej H.
Moderator

Perhaps everything is much simpler.In some hosting control panels, you can configure redirection using special options.What is your hosting?

Lire plus
Posté le de Aleksej H.
Supaporn B.
Supaporn B.
User
Auteur
Aleksej H.
Perhaps everything is much simpler.In some hosting control panels, you can configure redirection using special options.What is your hosting?

Thank you. My Hosting is godaddy. 

Lire plus
Posté le de Supaporn B.
Supaporn B.
Supaporn B.
User
Auteur

Thank you for all reply. I have to go sleep now. And I will read your all reply tomorrow. Thank you so much

Lire plus
Posté le de Supaporn B.
Supaporn B.
Supaporn B.
User
Auteur

I'm not sure thai I do it right ?

Lire plus
Posté le de Supaporn B.
Supaporn B.
Supaporn B.
User
Auteur

and this

Lire plus
Posté le de Supaporn B.
Supaporn B.
Supaporn B.
User
Auteur

and this

Lire plus
Posté le de Supaporn B.
Supaporn B.
Supaporn B.
User
Auteur

I still can't solve this problem. Please recommend me. Thank you very much.

Lire plus
Posté le de Supaporn B.
Esahc ..
Esahc ..
Moderator

WX5 does not control the content of the .htaccess file, so you need to make the changes outside of WX5.

If you use Filezilla (or similar) you can log into your host (using the same credentials you use inside WX5) and navigate to httpdocs. Here you will find an existing .htaccess file. You can edit this file (it is only text) and add the following lines:-

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Save the file back and now try your website.

If it doesn't work you have 2 choices, post the content of htaccess here so we can try assist or (this is what I'd do), log in to godaddy, select livechat and ask them to fix it for you :-)

Lire plus
Posté le de Esahc ..
Aleksej H.
Aleksej H.
Moderator

"My Hosting is godaddy." - try this. This is a link to the GoDaddy hosting documentation.

Lire plus
Posté le de Aleksej H.
Supaporn B.
Supaporn B.
User
Auteur
Esahc ..
WX5 does not control the content of the .htaccess file, so you need to make the changes outside of WX5. If you use Filezilla (or similar) you can log into your host (using the same credentials you use inside WX5) and navigate to httpdocs. Here you will find an existing .htaccess file. You can edit this file (it is only text) and add the following lines:- RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Save the file back and now try your website. If it doesn't work you have 2 choices, post the content of htaccess here so we can try assist or (this is what I'd do), log in to godaddy, select livechat and ask them to fix it for you :-)

My content of htaccess is 

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Lire plus
Posté le de Supaporn B.
Esahc ..
Esahc ..
Moderator

These are the only lines in my .htaccess file

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

The file is called .htaccess

I suspect yours is .htaccess.txt in which case right click on it and rename to .htaccess (no other file type)

This works for me, but if you continue to have difficulty I suggest you visit godaddy, select live chat and discuss the problem. They well either tell you what is required or make the required changes for you.

Lire plus
Posté le de Esahc ..