WordPress.org

Ready to get started?Download WordPress

Forums

changing index page (8 posts)

  1. caliban
    Member
    Posted 10 years ago #

    changing index page

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Some more info from you would be useful :)

  3. caliban
    Member
    Posted 10 years ago #

    i didnt mean to post i meant to search. NOW i mean to post. how do i not make wpress my index page? i want to display my static index. html and provide a link to the blog in the page. the default install just bypasses my pretty index page altogether.

  4. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Have WP in a sub-directory.
    Then at http://www.example.com/index.html there can be the full site index, with one link off to your blog.

  5. jpierre
    Member
    Posted 10 years ago #

    A somewhat similar situation: I have a (static) blog in my root directory (index.html) that I have reproduced on WP 1.2. I have installed WP in .../wp. Now that I am ready to make the switch, I want to erase the index.html file in order to replace it by the new WP index.php. For that I changed the blog address in the Options page to match the switch. Is it the way to go? I tried to move index.php to the root directory but -- I should have known -- it didn't work. So, in resume, my question is:
    old blog: http://www.carnetsdetoile.ca
    new blog: http://www.carnetsdetoile.ca/wp
    How can I reach the new through the url of the old? Clear? Humm...
    JP

  6. idahocline
    Member
    Posted 10 years ago #

    in the index.html, define a "redirection" or use :

    <?php
    header("Location: http://www.carnetsdetoile.ca/wp"); /* Redirect browser */
    /* Make sure that code below does not get executed when we redirect. */
    exit;
    ?>

  7. jpierre
    Member
    Posted 10 years ago #

    Thanks but not sure where to put it. In the header? And shall I have to erase the old index?
    JP

  8. idahocline
    Member
    Posted 10 years ago #

    Before anything else. if you want further info on this :
    php.net - Function header
    :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.