.htaccess maker

.htaccess generator maker easier

Htaccess Change the Default Directory Page DirectoryIndex

There are a number of command you can use through htaccess file to change the default directory page of your website. If you want to change the default of your website’s html file , you can simply create the .htaccess file , and then use the command line;

DirectoryIndex index.html

You can even make your default directory page load a movie at default by using the command line:

DirectoryIndex cool.mov.

You can also specify multiple files when you change the default directory page by adding the extension of the files to DirectoryIndex. In case the server cannot find the default directory page you specify, it will simply revert to a directory listing within the htaccess file in the folder created. There is no limit to the number of times you can change your default directory page, however , you may need to clear your browser cache sometimes before changing the default directory page.

Your .htaccess File

Download Copy

You can create the .htaccess file using a good text editor like TextPad, UltraEdit and Microsoft WordPad. You cannot use Microsoft NotePad. An .htaccess file can contain a single or multiple lines depending upon the functions you want to include in it. You will need to use an FTP (File Transfer Protocol) program to upload the file. Also you must to upload the file in “ASCII” mode. Some FTP programs use “BINARY” as the default to upload files. If that’s the case you must change it to “ASCII”. Upload the file to the directory you want it to reside in. when you look at the files in your website’s directory you might not see it as your web server’s software is probably hiding it.

Change default directory page

Change Default Dir to protect it from Exploit

Copyright © 2021 · htaccessmaker.com · Log in