If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Oct 2002
    Member #
    You know how you can only have one index.html file per directory...can you have an index.html file pointing to an index.php file in the same directory? I know it works but is this wrong to do?

    Never Know Null.


  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Maryland, US
    Member #
    21 times
    Sure you can. The HTML won't be parsed as PHP, but you can just redirect to the index.php via a META tag:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="refresh" content="0;URL=index.php">
    <body bgcolor="#FFFFFF" text="#000000">
    Please wait, redirecting...<br>
    If the new page doesn't load, try <a href="index.php">loading it manually</a>.
    Don't know why you'd want to do it, but you could.
    filburt1, Web Design founder
    Site of the Month contest: submit your site or vote for the winner!

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 12:48 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: