Hi,
The moment user hits the url I ehant to redirect him to another url depending on his login status. Sounds complicated? OK there is what I want to do in English.
I want to make different home-pages for users and none user. When a loged-in user would dial my sites domain he would go to one url and if not to other.
Here is how I see it in code:
if(!empty($GLOBALS['user']->uid)){
header( 'Location: http://www.mysite.com/page1.html' ) ;
}else{
header( 'Location: http://www.mysite.com/page2.html' ) ;
}
The problem is I have now clue where to put this code. Index.php seams to be reasonable but it is used almost only on the occasion of installation of drupal.
There is bunch of powerful modules which I think can do this but I need something very simple. Any way if there is a module fit for this please give me heads up.
Comments
Comment #1
kars-t commentedHi
I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.
Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.