jrp — 2000-02-05T10:02:00-05:00 — #1
I want index.php to replace index.htm as the default document on a directory structure.
Is that posibe? how?
daniel — 2000-02-05T10:09:00-05:00 — #2
Try it and see if it works first of all (delete your index.htm and upload your index.php). If it doesn't, then contact the server administrator and ask him to change it (presuming, of course, that you're allowed to use php with your current account).
f-free - Free Stuff and Freebies!
mkaufman — 2000-02-05T10:31:00-05:00 — #3
Do not delete the index.html, just edit it to make it forward to the index.php file using Meta Refresh tags. That is probably the easiest and fastest way that I can think of.
Or I think you could use .htaccess files, though I am not sure about that.
The Ultimate Webmaster Resource Center
[This message has been edited by Matt Kaufman (edited February 05, 2000).]
system — 2000-02-05T15:53:00-05:00 — #4
couple of ways
- edit a .htaccess file in the home directory and put the following :
- link the html to the php .. you would need to telnet to the server to do this.. after deleting the html, telnet in, cd to the directory , and type
ln -s index.html index.php
- ask the administrator of the server to add index.php to his apache config file in the "DirectoryIndex" directive
have a nice day
Kryogen Networks - when you want something else
jrp — 2000-02-05T18:35:00-05:00 — #5
isn't there a way to change it for onlu some directories?
mishi98 — 2000-02-21T21:10:00-05:00 — #6
When I had this problem I just sent an e-mail to the friendly 24/7 technical support department at my web hosting company (http://www.westhost.com/). In five minutes they changed it for me.
mittineague — 2014-09-15T03:34:30-04:00 — #7
This topic is now archived. It is frozen and cannot be changed in any way.