GIDForums  

Go Back   GIDForums > Computer Programming Forums > Miscellaneous Programming Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-Mar-2008, 08:52
Kacyndra's Avatar
Kacyndra Kacyndra is offline
Member
 
Join Date: May 2005
Location: Maryland
Posts: 225
Kacyndra will become famous soon enough

index.htm vs index.php


the default for .com right now is index.php

how can i keep my index.php in the root, but have index.htm load by default?


Thanks!
__________________
Xrum!
  #2  
Old 11-Mar-2008, 09:24
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 749
admin will become famous soon enough

Re: .htm vs .php


If the web server is Apache, it is simple. Just change the DirectoryIndex directive like this:

Code:
DirectoryIndex index.htm index.php

If you want index.php to be the default when more than one exists, you would do it like this:

Code:
DirectoryIndex index.php index.html index.htm default.asp

This can be configured in the following areas: server config, virtual host, directory, .htaccess.

More details can be found here: http://httpd.apache.org/docs/1.3/mod...directoryindex.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
 
 

Recent GIDBlogWelcome to Baghdad by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Noob help on inserting .htm files soth MySQL / PHP Forum 13 24-Mar-2003 10:49

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:46.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.