• I know this might be a total htaccess question but I haven’t been able to find any answers on this.

    I have my site up with the static page: http://kliklogik.com
    The file is index.html

    I installed wordpress in the same directory and supposedly wordpress has index.php

    However, when I go to http://kliklogik.com/index.php it goes to http://kliklogik.com/ (not even index.html)

    I am doing this because I would like to roll out the blog feature first before I integrate the whole site in wordpress.

    Here’s what it says in my .htaccess:

    DirectoryIndex index.html index.php
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Can anyone help?

    I am wondering if it’s an internal wordpress setting to always take out the “index.php”?

    Please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t believe you can have an index.php and index.html in the same folder and expect it to work.

    Why not install WordPress in a folder of web-root, say blog, then when you are ready to go live, delete the index.html, and to make WordPress available at http://mydomain.com just change in Settings->General, the Blog address (URL) to http://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the blog folder)

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./blog/wp-blog-header.php');
    ?>

    Then update your permalinks in Settings->Permalinks.

    “Normally” placing DirectoryIndex index.html in the .htaccess file overcomes this issue and you can use domain.com/index.php to access the CMS/Blog and domain.com goes the the place holder.

    This is an issue with WP which doesn’t apply to other code. Most disconcerting

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Developing while index.html and index.php both exist’ is closed to new replies.