Forums

WordPress won't load without index.html file, help! (4 posts)

  1. skiva2u
    Member
    Posted 2 years ago #

    I left over a index.html file on my domain during the WP installation. Since then, my WP site will not load if I removed the index.html file.

    I wish to take away this index.html file, and allow my visitors to load my WP site straight way.

    Any solution?

    Thank You!

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Solution 1
    If allowed by your host, putting this in an .htaccess file could solve the problem:
    DirectoryIndex index.html index.htm index.php

    Solution 2
    Some hosts allow you to make a change, via their hosting control panel, to the DirectoryIndex. It's typically described as Indexes or Index documents, but may also require you to type something like
    DirectoryIndex index.html index.htm index.php
    or specify index.php as an index type file.

    Solution 3
    Instruct Apache to treat index.php as an index file. If you own the server, or have access to the http.conf file, simply modify the DirectoryIndex line in httpd.conf to:
    DirectoryIndex index.html index.htm index.php

    Solution 4
    Contact your host

  3. skiva2u
    Member
    Posted 2 years ago #

    That is very straight forward & informative.
    Thank you so much!

  4. skiva2u
    Member
    Posted 2 years ago #

    I have the access to .htaccess, just did a check & found this in it.

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

    # END WordPress

    Anything else should I edit besides adding

    DirectoryIndex index.html index.htm index.php

    TQ!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags