How can I redirect to another page if logged in?

Discussion in 'Troubleshooting' started by oliver94, Jul 31, 2011.

  1. oliver94

    oliver94 Member

    Joined:
    Feb 22, 2011
    Messages:
    33
    Hi guys, I was wondering if there's a script that can check if a registered amember of my site is logged in and will redirect them?

    When I first setup amember I accidentally did

    domain.com/amember/

    so now, I have an external sign in page I had to setup myself using the index page at

    domain.com/index.php

    Is it possible to put some php code in the index.php and have it redirect them if they have their cookies set already?

    Thank you
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437

Share This Page