cancel
Showing results for 
Search instead for 
Did you mean: 

How do I stop somebody using http:// instead of https:// ? They both access the same page.

Highlighted
Rising Star
Posts: 218
Thanks: 1
Fixes: 2
Registered: ‎06-08-2007

How do I stop somebody using http:// instead of https:// ? They both access the same page.

Should I use HTTP or HTTPS? 

I used to run a booking system for the Sailing club boat using HTTP, now everybody used HTTPS.

 

http://www.dougrice.plus.com/gbbook/calendar/bookingDemo.htm
https://homepages.plus.net/dougrice/gbbook/calendar/bookingDemo.htm

These point to the same place, and point to the same file on the server.

 

My question. How do I  stop somebody using http:// instead of  https:// ?

They both access the same file on the server.

Is this a miss understanding?

 

You do not need to login at the moment.

NOTE:-

Plusnet do not support SSL for  cross-site pages, so my web booking system does not work over https as it includes dynamic content via a JavaScript file from the ccgi.dougrice.plus.com

<!--
  <script src="http://ccgi.dougrice.plus.com/gb/gbookFDemoBookings.js" language="JavaScript"> </script>
  -->
   
  <script>
  now = new Date()
  /* try some cache busting append the time to the URL to make it different, so the URL is not cached. */
  self.document.write( '<scr'+'ipt src=http://ccgi.dougrice.plus.com/gb/gbookFDemoBookings.js?'+now.getTime()+' language="JavaScript"> </scr'+'ipt>' )
   
  </script>

 

1 REPLY 1
Highlighted
All Star
Posts: 617
Thanks: 391
Fixes: 1
Registered: ‎27-12-2019

Re: How do I stop somebody using http:// instead of https:// ? They both access the same page.

If you have access you can do this using your Apache httpd.conf file for VirtualHost *:80 and set a permanent redirect thus:

Redirect permanent / https://yourdomain