Support » Fixing WordPress » changing index page

Viewing 7 replies - 1 through 7 (of 7 total)
  • Some more info from you would be useful 🙂

    caliban

    (@caliban)

    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.

    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.

    jpierre

    (@jpierre)

    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

    idahocline

    (@idahocline)

    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;
    ?>

    jpierre

    (@jpierre)

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

    idahocline

    (@idahocline)

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘changing index page’ is closed to new replies.