WordPress.org

Ready to get started?Download WordPress

Forums

index.html or index.php (4 posts)

  1. jgomezgarcia
    Member
    Posted 3 years ago #

    Hi there, every one.
    I'm working in a WP-based page, and I need to include an special feature: it shows an image welcoming, and then, after 2 seconds, it loads, auto-magically :) , the first WP-based page.

    The image page's name should be index.html, and maintaining the naming of the WP's pages, is index.php.

    The matter is that using the meta tag <meta http-equiv="refresh" content="3; url=./index.php" />, the browser reload the index.html, instead the index.php.

    Any idea about how to resolv it? I will be sooooo grateful.

    Best regards.

  2. jonradio
    Member
    Posted 3 years ago #

    I've never heard of anyone ever getting an index.html and a WordPress index.php both working in the same folder. (But I don't get out much....)

    Why not have WordPress in its own folder and have the root index.html point to the WordPress folder?

  3. jgomezgarcia
    Member
    Posted 3 years ago #

    Because I want to keep the URL as www.this_is_an_url.org, instead as www.this_is_an_url.org/subdir.

    It's no so ncesary, but... :)

    Thanks, anyway

  4. jonradio
    Member
    Posted 3 years ago #

    Lets get back to basics. I originally understood you to want people coming to your web site to see an image displayed. Then 2 seconds later, the home page of your WordPress site is displayed.

    I suggested that you have an index.html file in your root directory with a Refresh meta statement that points to subdir/index.php, which would display the WordPress home page.

    That doesn't change your URL that visitors use: they simply type http://www.this_is_an_url.org, get a 2 second image, and then are in your WordPress site at http://www.this_is_an_url.org/subdir

    Only other thing I can see you wanting would be a WordPress home page that does the image and 2 second refresh to another WordPress page (that is, obviously, not the home page).

    You are going to have to clarify what you want to do further, if I haven't answered your question.

Topic Closed

This topic has been closed to new replies.

About this Topic