Joriz, on 25 November 2009 - 08:57 AM, said:
Modify the following file to something like this:
/admin/sources/classes/output/adminOutput.php - Line 132 ...
Also add this to the .htaccess to force SSL in the admin directory:
This will make the admin section work almost completely via SSL. Only some images and javascript files aren't loading via SSL which isn't that important.
Please note that you first need to have a safe working and installed SSL certificate at your server before this works.
I hope this get implemented at a more fancy way in IPB3 as standard option.
/admin/sources/classes/output/adminOutput.php - Line 132 ...
/* Update paths and such */ $this->settings['base_url'] = $this->settings['_original_base_url']; $this->settings['public_url'] = $this->settings['_original_base_url'] . '/index.php?'; $this->settings['_original_base_url'] = str_replace( 'http://', 'https://', $this->settings['_original_base_url'] ); $this->settings['public_url'] = str_replace( 'http://', 'https://', $this->settings['public_url'] ); $this->settings['base_url'] = str_replace( 'http://', 'https://', $this->settings['base_url'] ); $this->settings['public_dir'] = str_replace( 'http://', 'https://', $this->settings['public_dir'] );
Also add this to the .htaccess to force SSL in the admin directory:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://forums.domain.com%{REQUEST_URI}
This will make the admin section work almost completely via SSL. Only some images and javascript files aren't loading via SSL which isn't that important.
Please note that you first need to have a safe working and installed SSL certificate at your server before this works.
I hope this get implemented at a more fancy way in IPB3 as standard option.
Thank you very much for this piece of code Joriz.




Find content
Not Telling
