• tombanjo

    (@tombanjo)


    WP 1.5 rocks!

    I had a quick question — I have created a “Page” and I would like that Page serve as the main index.php file. That way I can create a static-type “welcome” page that I can update within WP.

    Anyway, how can I set this particular Page to show as the index page? I know that I will need to revise my index.php template so it doesn’t have the blog post “Loop” but I’m just not sure how to call the particular Page.

    TIA

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi tombanjo,

    There is a very simple way to do this using extra Rewrite rules if you are using Permalinks.

    I use this sucessfully on this site: The Costa Rica Bike Ride

    The extra rewrite rules I’ve added to the .htaccess file are as follows:


    #Special Rules to make a Page home
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^$ /do-something-amazing/
    </IfModule>

    I put these before the # BEGIN WordPress line. The do-something-amazing bit is the page-stub

    westi

    Thread Starter tombanjo

    (@tombanjo)

    Hey, westi —

    Most excellent! Works perfectly.

    Thanks for your kind and helpful reply.

    I need to do this as well could you explain what you put where do-something-amazing is?

    There is a simpler way: save your index.php as home.php and edit it as you wish.
    (hint: Read the Template Hierarchy in the Codex

    But for it to work with permalinks that wouldn’t work no?

    First read what I recommended, AFTER that you can ask questions ??

    Messing with rewrite is never simple. Moshu has the simple solution.

    this is all getting very hard to follow, pls someone write a nice easy to follow post on how to make a static homepage

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Page as index.php’ is closed to new replies.