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 8115433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:28:59+00:00 2026-06-06T03:28:59+00:00

I am trying to do an introduction page for a website. The trick is,

  • 0

I am trying to do an introduction page for a website. The trick is, i would only like the user to be redirected here on the first visit. E.g. if he has no session yet. (Although I am not familiar what else to use.) I have been told about .htaccess could do the trick. I use the wordpress engine.

Intro page: http://www.example.com/?page_id=5 (First visitors should be redirected here.)
Index page under: http://www.example.com/ (Should not be changed for the engine’s mechanisms. In fact this is a custom page too http://www.example.com/?page_id=1, but was selected to be main page in the wordpress options.)

Can you help me? Can you show me specific htaccess code?

Thanks,
Sziro

  • 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-06-06T03:29:01+00:00Added an answer on June 6, 2026 at 3:29 am

    Can you edit your php files? php handles sessions more flexibly than .htaccess.

    Basically something simple to put at the top of your header.php (before anything else gets executed).

    <?php
        $redirect_url = home_url('/?page_id=5');
        if ( !isset($_SESSION['blablabla']) ) {
            $_SESSION['blablabla'] = "blablabla";
            wp_redirect($redirect_url);
        }
    ?>
    

    This way whenever any page is accessed (since wordpress includes the header in requested pages), php checks if the session (specifically $_SESSION[‘blablabla’]) has been set, if not then redirect to the home page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement the example outlined here: http://www.codeproject.com/Articles/30994/Introduction-to-WPF-Templates The author states The ContentPresenter
I'm trying to set up an initial view for my application (introduction page) and
I'm trying to set up the spring AOP example from this page: http://www.javabeat.net/articles/51-introduction-to-springs-aspect-oriented-programminga-4.html I'm
Introduction: I'm trying to get additional fields to log with log4j, and its working
Trying to avoid the SomethingManager trap here... Let's say I'm going to write a
I'm trying to find a good, simple introduction to domain driven design, but that
I am trying to create a Ajax Toolkit TabContainer which has Previous and Next
Introduction I am trying to use P/Invoke to register a struct of callbacks with
I am trying to get an introduction to serving files to the iphone. I
I'm looking at the Ninject Factory extension at the following link: http://www.planetgeek.ch/2011/12/31/ninject-extensions-factory-introduction/ I'm trying

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.