Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6898725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:19:57+00:00 2026-05-27T07:19:57+00:00

I have a landing page that I would like viewers to see when first

  • 0

I have a landing page that I would like viewers to see when first arriving at //domain.com. Then, if they have been to the site before the browser would automatically skip the landing page and take them directly to //domain.com/main.html

What is the best approach to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:19:58+00:00Added an answer on May 27, 2026 at 7:19 am

    If I were you, I would actually re-direct if they haven’t seen the page the first time. It creates a more intuitive URL.

    Either way, strictly speaking, you want to use setcookie the first time that the person visits the site, and then test to see if the value exists in $_COOKIE upon return. Realistically, you probably want:

    1. Redirect if cookie not present
    2. Link on landing page re-directs them to a page which sets the cookie.
    3. Page which sets the cookie re-directs them to the actual main page.

    Why do you want to set the value after the use clicks a link? Well, that way you can force them to actually look at the page before continuing, and I think that is more what you want.

    Your redirect might look like:

    if( !isset( $_COOKIE[ 'seen_landing_page' ] ) )
    {
        header( 'Location: <other page>' );
        die();
    }
    // do whatever else here.
    

    You can then have a simple pass-through page:

    setcookie('seen_landing_page',TRUE);
    header( 'Location: <your main page>' );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://blog.helpcurenow.org/test/mockups/mar2010/lp.html In the above landing page, I have an offers box that has four
I have been tasked with optimizing a marketing landing page for speed. It already
I would like to create a multilanguage landing page , users will get the
I have uploaded a landing page that our company has contracted out, and Firefox
I have a landing page on rails with blog style posts. Since it's the
I have Page Tab App, which has a landing page with a Log In
After I submit a form I have 2 $_POST variables. In the landing page
I have a PHP application containing these files: landing.php, redirect.php, ajax.php on a page
I want to create a landing page for internal apps that updates itself so
I would like to redirect a user to a special directory with a landing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.