3K

iOS App Reviews

Essential .htaccess Commands  1

Respot Respot ++4
Apache web servers offer a flexible way to control the server settings by using .htaccess file. This tiny is being read and translated by apache before serving the actual web pages or files. Here is a list of a few simple and useful .htaccess commands. Changing the default index file
DirectoryIndex index.html
This code changes the default index file. An index file is the first page that will be loaded up hen visiting mywebsite.com or even mywebsite/foo/. In this case visiting mywebsite.com will load up mywebsite.com/index.html.
DirectoryIndex index.html index.php index.htm
You can also give a list of options such as shown in the snipper above. This command will search for index.html, index.php and index.htm in the exact order. If you have index.php and index.html sitting on the same folder, the one that will be loaded is index.html.
Publisher: Blog_icon www.vhortex.com 9

Also in this spot

1 comment to the post

  • Apache web servers offer a flexible way to control the server settings by using .htaccess file. This tiny is being read and translated by apache before serving the actual web pages or files. Here is a list of a few simple and useful .htaccess commands. Changing the default index file

Leave a comment