WebSite X5Help Center

 
Erik J.
Erik J.
User

Forward an X5 website to the HTTPS version  en

Author: Erik J.
Visited 2431, Followers 1, Shared 0  

I want to forward an X5 website to the HTTPS version. It must be done from my X5 website.
How - and where - can I do this?

Posted on the
4 ANSWERS - 2 USEFUL
Paul M.
Paul M.
Moderator

Hello Erik,

What you are requesting is always best done on the server, but if you really must enforce https from within a WebSite X5 page then you have a couple of options:

1.  Change the 'File name format' of each page in your site to PHP (Step 3 Sitemap > Page Properties > Expert tab...  then add the following code 'Before opening the HTML tag' to each page in your site (this would be best done 'globally' by adding it in Step 1 Settings > Advanced > Statistics, SEO and Code):

<?php

if($_SERVER[‘HTTPS’]!=”on”) {

$redirect= “https://”.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’];

header(“Location:$redirect”);}

?>

2.  Add the following meta tag individually to the head of each page in your site... (Step 3 Sitemap > Page Properties > Expert tab > After opening the HEAD tag):

< meta http-equiv=”Refresh” content=”0;URL=https://www.yourdomainname.com/name_of _your_WebSiteX5_page” />

(edit 'your_domain_name.com' to reflect your own website address)

You should only use one of these methods, not both simultaneously.  Option 1 is preferred if you have PHP running on your server.

Kind regards,

Paul

https://webx5.pro

Read more
Posted on the from Paul M.
Erik J.
Erik J.
User
Author

Please watch the attached file showing 4 different browser results and colors of the lock with entry or without entry "https". 

I discussed this with my hosting unoeuro.com in Denmark, and they recommended me to make changes on my websites. I think this changes are complicated.

Do you know why the results below are so different?

Read more
Posted on the from Erik J.
Paul M.
Paul M.
Moderator

Hello again Erik,

I don't see anything untoward or unusual in the images.  The various browsers all use slightly different icons to denote secure and non-secure pages.

The only comment I would make is that it is impossible to have exactly the same icon showing for both http and https, so I am a little confused as to your suggestion that Edge and Firefox display the same icon regardless.  However, I checked in my own browser and this does not seem to be the case anyway.

At the time of writing you are not enforcing SSL connections.  It is still possible to access your website using the HTTP protocol.

Please excuse me if I have misunderstood you.

Read more
Posted on the from Paul M.
Adrian B.
Adrian B.
User

Why not just use cloudflare? You can force everything to https within cloudflare. Its free and easy, and also provides CDN (content delivery network), making your site fast to users everywhere.

Been using it now for a month with several websites - no problems

Adrian

Read more
Posted on the from Adrian B.