Making Apache Look For Index.php Instead of Index.html

This video shows you how to make Apache look for an index.php file instead of an index.html file. A lot of sites do use an HTML file for their index, but in my case I’m using Drupal which uses PHP. Every time I would go to the address without index.php on the end, it would show a directory listing. And the way Drupal works, when you try to do something, it just adds the string to the end of the UR…


--escaped_external_link:10ccbf38faa367f9902035c1c2ed7922-- --escaped_external_link:6af8d7f7b0458fbb8f156e5df69e0a64--

Related Product:

Hands-On Guide to Flash Video: Web Video and Flash Media ServerHands-On Guide to Flash Video: Web Video and Flash Media ServerThe Hands-On Guide to Flash Video is a professional reference book written by industry experts that are currently helping professionals produce Web vi... Read More >
Share and Enjoy:
  • email
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

8 Comments | Add your own

  • 1. SBZX8 | August 14, 2010 at 9:08 pm | Permalink

    Wrong. It’d be a lot more convenient to use both, in case you have other directories that use HTML as their index page language. I’d also recommend supporting index.htm, and index.shtml.

    All the best,

    Sam

  • 2. ubercharger9000 | August 14, 2010 at 9:21 pm | Permalink

    @gnutelliums
    just saying idiot its completely relative to this video to inform people who are using apache that comes with xampp

  • 3. McIntec | August 14, 2010 at 9:25 pm | Permalink

    Nice Video :)

  • 4. ubercharger9000 | August 14, 2010 at 9:25 pm | Permalink

    i use XAMPP and it already has all the index.**** on that line

  • 5. Ev4nsLife | August 14, 2010 at 9:28 pm | Permalink

    Yup..

  • 6. gnutelliums | August 14, 2010 at 9:37 pm | Permalink

    @ubercharger9000 Well, good for you!

  • 7. galigali82 | August 14, 2010 at 9:45 pm | Permalink

    Thanks, it was helpfull.

    Btw, reading other articles I’ve just found out that you can also just add index.php before the index.html instead of deleting it.

  • 8. SBZX8 | August 14, 2010 at 9:48 pm | Permalink

    Uhm. False.

    I’d recommend using index.php, and index.html — just in case you have a directory that uses HTML files instead of PHP files for their index. Also, I’d recommend adding index.htm and index.shtml also.

    All the best,

    Sam

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

All trademarks and copyrights owned by their respective owners and are used for illustration only
Kokopelli Creative Web Design
Bear
Webhosting Admin | Bargain Host | Host Wiki | domainRIFFIC | Domain Rates | WHOIS Gator