21
nekro
Re: SSL problems
  • 2006/6/22 15:11

  • nekro

  • Quite a regular

  • Posts: 213

  • Since: 2005/11/9


really i dont now... and i dont undestand why the XOOPS SSL login doesn t work

22
iHackCode
Re: SSL problems

Quote:

technigrafa wrote:
Thanks again.

I don't think this is what I'm going for. That changes http to https all the time.

I am saying this:

If SSL login is enabled in XOOPS and a user types in yoursite.com, but your SSL requires http://www.yoursite.com, the XOOPS SSL login won't work, unless the user manually visits http://www.yoursite.com (which is where they are authenticated to).

So I used mod rewrite to make any requests to yoursite.com go to http://www.yoursite.com, which is great, BUT if a user goes directly to yoursite.com/modules/news, my trick won't automatically change the URL to http://www.yoursite.com/modules/news

Does that make sense?


wow this is kinda an old post, try.

RewriteEngine On
RewriteCond 
%{HTTP_HOST} !^domain.com [NC]
RewriteRule ^(.*)$ http://domain.com%{REQUEST_URI} [R=301]
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

23
pjskluzacek
Re: SSL problems
  • 2007/3/17 19:03

  • pjskluzacek

  • Just popping in

  • Posts: 4

  • Since: 2007/1/28


I did all the above steps except the redirects as that is not an issue for us. At first the login worked fine with IE but Firefox gave everyone the security warning seen earlier in this thread. When I did the steps to eliminate that problem Firefox worked perfectly but with IE when you get to the last step on the login process (the close button), the popbox does not close and the main window does not refresh (show you logged in). I can close the popup window and refresh the main page manually and I'll be signed in. IE gives me the following error message.

Line: 14
Char: 1
Error: Permision denied
Code: 0
URL: https://www.ourwebsite.org/xoopsdir/misc.php?
action=showpopups&type=ssllogin

Here is the begining including line 14 of our misc.php


include "mainfile.php";
include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/misc.php';
$action = isset($_GET['action']) ? trim($_GET['action']) : '';
$action = isset($_POST['action']) ? trim($_POST['action']) : $action;
$type = isset($_GET['type']) ? trim($_GET['type']) : '';
$type = isset($_POST['type']) ? trim($_POST['type']) : $type;

if ( $action == "showpopups" ) {
xoops_header(false);
// show javascript close button?
$closebutton = 1;
switch ( $type ) {
case "smilies":
$target = isset($_GET['target']) ? trim($_GET['target']) : '';
if ($target == '' || !preg_match('/^[0-9a-z_]*$/i', $target)) {
} else {
echo "