Register

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
    Posts
    14
    Member #
    225
    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?

    Thanks-
    Never Know Null.

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    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:
    Code:
    <html>
    <head>
    <title>Redirecting...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="refresh" content="0;URL=index.php">
    </head>
    
    <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>.
    </body>
    </html>
    Don't know why you'd want to do it, but you could.
    filburt1, Web Design Forums.net 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 11:24 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com