in includes/functions.php find lines containing S_LOGIN_ACTION and U_ACP and prepend your phpbb usl with ssl to their values. For example:
S_LOGIN_ACTION' => build_url(array('f')),
becomes
S_LOGIN_ACTION' => 'https://www.greatwallhiking.com/forum/' . build_url(array('f')),
and
S_LOGIN_ACTION' => ((!defined('ADMIN_START')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login') : append_sid("index.$phpEx", false, true, $user->session_id)),
becomes
S_LOGIN_ACTION' => 'https://www.greatwallhiking.com/forum/' . ((!defined('ADMIN_START')) ? append_sid("{ucp.$phpEx", 'mode=login') : append_sid("adm/index.$phpEx", false, true, $user->session_id)),
and
U_ACP' => ($auth->acl_get('a_') && !empty($user->data['is_registered'])) ? append_sid("{$phpbb_root_path}adm/index.$phpEx", false, true, $user->session_id) : '')
becomes
U_ACP' => ($auth->acl_get('a_') && !empty($user->data['is_registered'])) ? 'https://www.greatwallhiking.com/forum/' . append_sid("{phpbb_root_path}adm/index.$phpEx", false, true, $user->session_id) : '')
-----
last but not lease
Add code at top line of phpbbInstalledDir/index.php
<script>
if (document.location.href.indexOf("https")!=-1){
document.location.href="http://"+document.location.href.substring(8);
}
script>
Great wall tour
Hey This Sounds Like What I Was Looking For .. Just one question though when you say " Add code at top line of phpbbInstalledDir/index.php "
ReplyDeletedo you mean before the <?php
or the next line down?
You Know when i did this my site gave a blank page
ReplyDelete