Redirection

I'm having a few problems with redirections?

I've put a splash page on my website, and when placing the following code in index.php the index page is just blank until I remove the code..

 

check_logged();
if (!isLogged()) { header ('Location:' . BX_DOL_URL_ROOT . 'join2.php = 
exit;}

 

Anyone know the reason why?

Quote · 11 Jan 2012

Hi!

The correct code is this

check_logged();

if (!isMember()) {

header('Location: ' . BX_DOL_URL_ROOT . 'home.php');

exit;

}

Good luck

so much to do....
Quote · 11 Jan 2012

Hi, my splash page is join2.php so guests should be redirected to that whilst members remain as normal.

Quote · 11 Jan 2012

Okay,

just put this after check_logged();

like this

check_logged();

if (!isMember()) {

header('Location: ' . BX_DOL_URL_ROOT . 'join2.php');

exit;

}

and every visitor will go to join2.php

so much to do....
Quote · 11 Jan 2012

Thank you, I appreciate your help.

Quote · 11 Jan 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.