When people visit your site by default the server check for an existing index file to load that page as the default one.
Some examples of common index files are: index.html, index.htm, index.php, index.cgi, index.pl, default.html, etc. The supported index files depend on the how the server is set up.
If you have two files with names from that list, the web server will show the one that shows up first, for example index.html will show up, even if you have an index.php file in the same directory.
If the server is unable to find the index file it will try to display an index of all the files available in the directory. If you have disabled the directory indexing from your hosting account control panel then it will show the 403 forbidden error.
Using .htaccess you can change the default index file in your account.
Create (or edit if it exist) a file called .htaccess in the desired directory with the following line:
DirectoryIndex mypage.html secondchoicepage.html thirdchoicepage.php
- 0 Users Found This Useful
How can i change the MySQL characters encoding to UTF8?
By default the encoding is latin1 but you could try to workaround your code. To change the...Oscommerce is showing a blank page in the categories pages
If you made no changes in your account or oscommerce script and this happened suddenly then there...I have the register_globals disabled server wide, how can i enable it in my account?
This option is available in all our shared cPanel hosting accounts.Please note if your script is...How could i change the PHP encoding in my scripts?
You could try changing it sending the headers in your php code, i.e.: header('Vary:...How do i parse .html files as .shtml (SSI)?
You can add the following line in your .htaccess file: AddHandler server-parsed .html or...