WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Index.html

[Resolved] Index.html

  • Hi:

    I have a index.html at my wordpress directory. This page is a frontpage that redirects my visitors to my blog.

    In wp versions lower than 2.7 my index.html and the wp index.php have lived together without any problem.

    In wp 2.7 it’s a problem my index.html. I have had to delete it.

    I have these options:
    wordpress address: http://www.my-site.com
    blog address: http://www.my-site.com/index.php

    When I visit my-site.com I go to my-site.com/index.html. Correct!

    But when I visit my-site.com/index.php I _always_ go to my-site.com/index.html. Incorrect!

    Any solution?

    A lot of thanks!

Viewing 15 replies - 1 through 15 (of 44 total)
  • Same problem here.

    kmnow2004
    Member

    @kmnow2004

    same problem here, help me

    kmessinger
    Moderator

    @kmessinger

    You cannot have index.html and index.php in the same directory without having problems.

    What is the url of your blog?

    You have not deleted index.html – it is still functioning. You say . . .

    When I visit my-site.com I go to my-site.com/index.html.

    so when you say . . .

    In wp 2.7 it’s a problem my index.html. I have had to delete it.

    that is not correct.

    You cannot have index.html and index.php in the same directory without having problems.

    I have no problem ever by having index.html and index.php in the same directory. It’s now with wordpress 2.7 when I have this ‘issue’.

    What is the url of your blog?

    http://www.vcubells.net

    My blog adress is http://www.vcubells.net/index.php

    I have had to delete index.html page in order to browse to my blog…

    Thanks!

    I have had to delete index.html page in order to browse to my blog…

    I have to delete index.html page if I want to browse to my blog.

    Now, I upload again my index.html so that you try it.

    It’s a better explanation…

    thanks!

    kmessinger
    Moderator

    @kmessinger

    Open the .htaccess file from your root web folder in a text editor. At the top of the file, add:
    DirectoryIndex home.php index.php
    Save and upload the modified .htaccess file. (for Apache server)

    http://codex.wordpress.org/Creating_a_Static_Front_Page

    Thanks kmessinger:

    That’s the first thing I had tried and it’s not a solution.

    By doing that I cannot browse to my index.html page.

    What have it changed from 2.7 version to previous that I don’t be able to have an index.php and an index.html page in the same root directory of my blog??

    Thanks!

    kmessinger
    Moderator

    @kmessinger

    AFAIK, nothing. The decision as to which index file to bring up is done by the server. That why is is much easier not to have multiple index files in one directory. But, the order of which file opens can be controlled by the server or by your htaccess.

    Maybe something on the server changed. Have you asked the server people? Is this an Apache or Windows server?

    Maybe something on the server changed. Have you asked the server people?

    Yes. Nothing has changed on the server.

    Is this an Apache or Windows server?

    Apache, of course.

    It’s a problem of the wordpress: index.php redirects visitor to index.html always, when you go to http://www.vcubells.net and when you go to http://www.vcubells.net/index.php.

    If I add “DirectoryIndex home.php index.php” in .htaccess then index.html desappear.

    This issue didn’t exist in wordpress version lower than 2.7.

    Thanks!

    kmessinger if you don’t know the solution please don’t post.
    It’s not a server related problem, it’s a WordPress 2.7 redirect issue.

    Thanks

    More people have the same problem 🙁

    http://wordpress.org/support/topic/224398

    mnr
    Participant

    @mnr

    Had the same problem.
    I had a redirect in my .htaccess from index.html to index.php
    I just had to remove it, that’s all.

    Hi mnr:

    I don’t have any redirect in my .htaccess.

    Even if I delete my .htaccess on the server, when I browse to http://www.vcubells.net/index.php, then wordpress redirects me to index.html.

    Try it: http://www.vcubells.net/index.php
    Now I don’t have any .htaccess and wordpress redirects me.

    I think your problem not is my problem.

    Paste your .htaccess if you think still that it is the same.

    Thanks!

    kmessinger
    Moderator

    @kmessinger

    LiZharD

    kmessinger if you don’t know the solution please don’t post.
    It’s not a server related problem, it’s a WordPress 2.7 redirect issue.

    Thanks

    I appreciate your comment and will cheerfully ignore it.

    Regards.

    rolle
    Participant

    @rolle

    Sorry, didn’t find this post in time, but I have the same problem also posted here: http://wordpress.org/support/topic/224398

    I heard there is no solution yet. Keep me posted.

    Rolle.

Viewing 15 replies - 1 through 15 (of 44 total)
  • The topic ‘[Resolved] Index.html’ is closed to new replies.