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.9 is now available!


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.10.x) »
  • General Help & Support »
  • Back end in https ?
  • Print
Pages: [1]   Go Down

Author Topic: Back end in https ?  (Read 15420 times)

Offline ivankeud

  • Posts: 9
  • Gender: Male
    • IR webdesigner
Back end in https ?
« on: January 23, 2018, 05:55:40 PM »
Hello all,

I am a loyal user of WebsiteBaker for 10 years and I did and still do a lot of websites with ( examples : http://www.ivan-reynier.com/webdesigner/creation-site-web.php )
My question is how to configure the back office in https ?
When I try to connect to the back office, I have a 404 error...

The frontend works well in https

My htaccess file :
Quote
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

I use also the droplet [[securelink?path=/]]
Quote
if(!isset($path)) return true;
$linkfind = WB_URL.$path;
$linkreplace = str_replace("http://","https://",$linkfind);
$wb_page_data = str_replace($linkfind, $linkreplace, $wb_page_data);
if ($_SERVER['SERVER_PORT']!==80) {
    $linkfind = WB_URL.MEDIA_DIRECT ORY;
    $linkreplace = str_replace("http://","https://",$linkfind);
    $wb_page_data = str_replace($linkfind, $linkreplace, $wb_page_data);
    $linkfind = WB_URL.'/modules';
    $linkreplace = str_replace("http://","https://",$linkfind);
    $wb_page_data = str_replace($linkfind, $linkreplace, $wb_page_data);
    $linkfind = TEMPLATE_DIR;
    $linkreplace = str_replace("http://","https://",$linkfind);
    $wb_page_data = str_replace($linkfind, $linkreplace, $wb_page_data);
}
return true;

I use Wb 2.10.0 with PHP 7

any idea ?

Thank you
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8924
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Back end in https ?
« Reply #1 on: January 23, 2018, 06:00:11 PM »
Hi, in your config.php is the https also needed.
Logged
https://onkel-franky.de

Offline ivankeud

  • Posts: 9
  • Gender: Male
    • IR webdesigner
Re: Back end in https ?
« Reply #2 on: January 24, 2018, 09:01:37 AM »
Ok great, it works  (Y)
Thank you
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5921
Re: Back end in https ?
« Reply #3 on: January 24, 2018, 05:58:01 PM »
to say it a little bit clearer....

if you have a signed certificate for SSL, it's not needed to have a .htaccess or code like your's to have a re-direct to a https-page in back-or frontend

if the ssl-usage is enabled in your server-settings, you have to change only the WB_URL in your config.php in wb-root-folder

if you use a older WB-Version or in your content extern links, maybe to Pictures etc on foreign servers, you have to check them. if there is a non-https-adress somewhere in your content in use, you get a warning in your browser adress for a "unsecure" page

Logged

Offline ivankeud

  • Posts: 9
  • Gender: Male
    • IR webdesigner
Re: Back end in https ?
« Reply #4 on: January 25, 2018, 09:36:33 AM »
Thank you for these clarifications...
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • Back end in https ?
 

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