WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • can not login after switching to SSL
  • Print
Pages: [1]   Go Down

Author Topic: can not login after switching to SSL  (Read 5777 times)

Offline netraam

  • Posts: 47
can not login after switching to SSL
« on: January 18, 2020, 05:28:59 PM »
Hello,

Our hosting company has set SSL on our website. They warned me that it was possible that I have to change something in the CMS. But now I can't login anymore. Does someone know how I can solve this problem.

thanks,
Maarten
Logged

johnbroeckaert

  • Guest
Re: can not login after switching to SSL
« Reply #1 on: January 18, 2020, 06:02:57 PM »
Hello,

try to go to the root of your website with FTP software and change the config file
Code: [Select]
define('WB_URL', 'http://localhost:4001/wbdemo'); // no trailing slash or backslash!!into
Code: [Select]
define('WB_URL', 'https://localhost:4001/wbdemo'); // no trailing slash or backslash!!That would do it....
Logged

johnbroeckaert

  • Guest
Re: can not login after switching to SSL
« Reply #2 on: January 18, 2020, 06:06:03 PM »
You can force an HTTPS connection on your website by adding these rules in your website's .htaccess file:
   
Code: [Select]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

The .htaccess file needs to be located inside the site's document root folder. If your website is in a sub folder, then the .htaccess should be placed in the corresponding sub folder.

You can create or edit the .htaccess file either via FTP, or using with the File Manager available in cPanel.
Logged

Offline netraam

  • Posts: 47
Re: can not login after switching to SSL
« Reply #3 on: January 18, 2020, 06:45:44 PM »
thanks for the fast reply,

the url in the config.php was already https.
I've put the rules in the htaccess and now everything works fine.

When changing the htacces I've accedentaly deleted the content of the htaccess.
Are there other things that need to be in the .htaccess? Now I have only the three lines that you posted.
Logged

johnbroeckaert

  • Guest
Re: can not login after switching to SSL
« Reply #4 on: January 19, 2020, 04:27:11 PM »
that depends on what was arranged. For example 404 error or 302 references from old to new pages;
This is useful for recording as standard:
Code: [Select]
ErrorDocument 404 http://www.domain.com/index.phpwhere domain.com is your own domain.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • can not login after switching to SSL
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2