Back end in https ?

ivankeud

Thank you for these clarifications...

Gast

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


ivankeud

Ok great, it works  (Y)
Thank you

dbs

Hi, in your config.php is the https also needed.
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

ivankeud

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 :
QuoteRewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

I use also the droplet [[securelink?path=/]]
Quoteif(!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_DIRECTORY;
    $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