.htm before .php

Problems with the Windows version of XAMPP, questions, comments, and anything related.

.htm before .php

Postby Killerfrog » 05. February 2006 19:58


In 1.5.0 .htm extension were opened before .php for the same name (example index.htm before index.php)

In 1.5.1 .php are opened before .htm . How can I make .htm to open before .php again?

Posts: 75
Joined: 18. December 2004 21:16

Postby tjthedj » 06. February 2006 00:44

i don't know exactly, but i know you can put a php redirect in the .php file and redirect it to the index.htm file u need

here is the redirect code
Code: Select all
// Redirect browser
header("Location: http://www.example.com/");

// stop executing this script

the http://www.example.com/ can be changed to the location, also if u don't want to use the full address it should still work with, /index.htm or somethiing like that

also you can use the index.php file that is in the htdocs folder and change the code to go index.html (that's what i did)
Posts: 41
Joined: 29. January 2006 20:40
Location: Texas, USA

Postby Killerfrog » 06. February 2006 00:48

well, thx but I want in fact :

index.htm loads really fast and simple page that say that website is loading cause server is slow and index.php is a page with a lot of infos to treat so I can't redirect index.php to index.php cause the order I need is index.htm that redirect to index.php!!!
Posts: 75
Joined: 18. December 2004 21:16

Postby KingCrunch » 06. February 2006 00:48

"exit" is useless in this case.

@topic: httpd.conf, directive "DirectoryIndex". change the order of the files. The first entries will be tried at first.
Nicht jeder Fehler ist ein Bug ...
Posts: 1724
Joined: 26. November 2005 19:25

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 60 guests