WordPress.org

Ready to get started?Download WordPress

Forums

Static (non-WP) page as Frontpage (3 posts)

  1. martinschwertle
    Member
    Posted 5 years ago #

    Hi folks,

    I am running WordPress 2.7 (german version) in the root directory and with permalinks like /%year%/%monthnum%/%day%/%postname%/.

    I would like to run a static index.htm file when someone joins the server - but just for a certain time (the time I am preparing the wordpress blog). But this file shall not be connected to wordpress anyhow. Usually my webserver privileges index.htm/.html files before considering index.php files. But in this case the permalink configuration avoids the server from using the index.htm file.

    My question now: Can I easily move all the content files from / to /wordpress/ or /blog/ and re-move it back to the webserver-root when I have finished developing and configuring the blog? Or will I get problems anyhow?

    Or do you have any other solution that moving into a /blog/-dir?

    Thanks and kind regards!
    Martin

  2. stvwlf
    Member
    Posted 5 years ago #

    Try adding this as the first line in your root folder's .htaccess file

    DirectoryIndex index.htm index.php

    If you put it before WP's htaccess code it should accomplish what you want

  3. martinschwertle
    Member
    Posted 5 years ago #

    That exactly was what I was looking for. Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Topic