WordPress.org

Ready to get started?Download WordPress

Forums

Root page other than index.php? (6 posts)

  1. kogeorge75
    Member
    Posted 8 years ago #

    I am setting up yet another WP blog. However, this blog is going to be academic in nature, kind of an experiment. It will be confusing without an intro into what I am doing.

    I want to have an intro page FIRST, before it gets to the index.php page. In other words, I would like it to hit index.html or default.html or whatever FIRST.

    Then, after they click "enter", they would go to index.php- the blog. You know, sort of like the porn sites do- although this isn't a porn site. It's about the stock market...which is why I need a disclaimer page before entering.

    Thank you in advance!

  2. jpmcc
    Member
    Posted 8 years ago #

    If you create a home.php, then WordPress will use that instead of index.php whenever a user accesses your root URL. I don't think you can go much further than that without hacking php code and using cookies etc.

    John

  3. kogeorge75
    Member
    Posted 8 years ago #

    So that's it then. It seems like it would be such a simple thing to do- have an intro page before the blog... Thanks anyway John; I appreciate that you were the only one to respond.

  4. Jonathan Landrum
    Member
    Posted 8 years ago #

    Well, there are plugins that make a static page the home page. The only problem with the home.php trick is that it overrides index.php all the time. There is (in my experience, anyway) no way to link from /home.php to /index.php, for instance.

  5. splosh
    Member
    Posted 8 years ago #

    Cant you just put the blog in a subdirectory?

  6. Jonathan Landrum
    Member
    Posted 8 years ago #

    This codex page has all the 411 on doing it only with WP:
    http://codex.wordpress.org/Creating_a_Static_Front_Page

Topic Closed

This topic has been closed to new replies.

About this Topic