Changing the default file via htaccess
htaccess has a ton of special operations available in it. One useful is to override the default file that is served up by the server for a directory. A web server typcally has index.html, index.htm, or something similar as the default
Simply locate your .htaccess file and open it for editing with your favorite editor and add a line where x.html is replaced with the file you want as the default file.
DirectoryIndex x.html
Save and reload the page….
Posted: July 19th, 2008 under Apache.
Comments: none
Write a comment