Viewing 3 replies - 1 through 3 (of 3 total)
  • Bit of a hack but – Within the index template before anything else happens you could do something like

    <?php
    if (!$user_ID)
    { header(‘Location: https://www.example.com/welcome&#8217;);
    exit;}
    ?>

    Thread Starter sparkguitar05

    (@sparkguitar05)

    It looks like you are on the right track, but it doesn’t work right. When I go to https://www.example.com it redirects to https://www.example.com/welcome, but I get the following message in Firefox.

    The page isn’t redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    To clarify what I did: I copied your code to the very top of index.php on the root of my website and changed the URL from example.com to my own URL.

    Let me know if I am doing something wrong.

    Thread Starter sparkguitar05

    (@sparkguitar05)

    Never mind I fixed it.

    For those of you who want to know, the code is supposed to go in the theme index.php file, not the root index.php file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show welcome page only to users that are not logged on’ is closed to new replies.