WebSite X5Help Center

 
Supaporn B.
Supaporn B.
User

Change to https  en

Autor: Supaporn B.
Visited 2358, Followers 2, Udostępniony 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?

Posted on the
14 ODPOWIEDZI - 1 POMOCNY
X5 Croatia
X5 Croatia
User

Use bouth version... My opinion...

Czytaj więcej
Posted on the from X5 Croatia
Supaporn B.
Supaporn B.
User
Autor

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

Czytaj więcej
Posted on the from 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.

Czytaj więcej
Posted on the from 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?

Czytaj więcej
Posted on the from Aleksej H.
Supaporn B.
Supaporn B.
User
Autor
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. 

Czytaj więcej
Posted on the from Supaporn B.
Supaporn B.
Supaporn B.
User
Autor

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

Czytaj więcej
Posted on the from Supaporn B.
Supaporn B.
Supaporn B.
User
Autor

I'm not sure thai I do it right ?

Czytaj więcej
Posted on the from Supaporn B.
Supaporn B.
Supaporn B.
User
Autor

and this

Czytaj więcej
Posted on the from Supaporn B.
Supaporn B.
Supaporn B.
User
Autor

and this

Czytaj więcej
Posted on the from Supaporn B.
Supaporn B.
Supaporn B.
User
Autor

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

Czytaj więcej
Posted on the from 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 :-)

Czytaj więcej
Posted on the from Esahc ..
Aleksej H.
Aleksej H.
Moderator

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

Czytaj więcej
Posted on the from Aleksej H.
Supaporn B.
Supaporn B.
User
Autor
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]

Czytaj więcej
Posted on the from 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.

Czytaj więcej
Posted on the from Esahc ..