Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

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

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,890
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 1, 2009

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 URL, like http://localhost/?q=node instead of http://localhost/index.php?q=node. Every time that happened I got a 404 not found error. In this video I will show you how to correct it and make Apache look for index.php instead of index.html.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (gnutelliums)

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

  • @ubercharger9000 Well, good for you!

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • Click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, type type type, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, click, etc.

    Windows: helping people develop arthritis since 1995.

  • I had xampp, and never used it to program anything, I wouldn't know how to use it end to end with an apache server

  • youre using windows. this video is not relevant to anyones interests.

  • Thanks for the info.

    Had a bad install of wordpress and this saved the day.

  • @gnutelliums

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

  • 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

  • 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

  • Nice Video :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more