GuppY Help Center, help online, documentation and tutorials

telecharger.png

You are here :   Welcome » server index: changing priority order.
    Print this page...

server index: changing priority order.


For example if the default index priority is :
• index.php
• index.htm
• index.html
To change it, using FTP, insert the following lines on the beginning of the .hatccess file at the root of GuppY . this file comes with the GuppY pack

DirectoryIndex index.html index.htm index.php index.phtml
(You just place them in the order you want with one space between each one.)

The .htaccess file will then become :

DirectoryIndex index.html index.html index.php index.phtml
Order allow,deny
Deny from all
Satisfy All
Order allow,deny
Deny from all
Satisfy All
ErrorDocument 400 /error.php?err=400
ErrorDocument 401 /error.php?err=401
ErrorDocument 403 /error.php?err=403
ErrorDocument 404 /error.php?err=404
ErrorDocument 500 /error.php?err=500


This tip allows you to make an intro page index.htm or index.html on one server where index.php would otherwise be the default beginning page.

Creation date : 23/02/2005 @ 06:40
Category : - Server - Technique
Page read 17415 times