Forums

Redirect index.php to a page (2 posts)

  1. 0x80
    Member
    Posted 1 year ago #

    How to you redirect index.php so that it looks like you enter the site on one of its pages?

    I have a few sections on my website with a tab menu. There is a blog and a project and others. If you click on blog WP will load page.php and only the posts in the blog category are show.

    (query_posts('showposts=10&category_name=Blog');

    I want this to be my home page as well. Now if I just edited index.php to use the same query as the blog page. The problem is that now my blog menu tab is not engaged so its not clear in what section of the site you are.

    All together this doesn't feel like the right way to go. How do I make my site enter on a certain page by default?

  2. James
    Happiness Engineer
    Posted 1 year ago #

    First, create a page template for what you wish to display:

    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    Then, set that page as a static front page:

    http://codex.wordpress.org/Creating_a_Static_Front_Page

Topic Closed

This topic has been closed to new replies.

About this Topic