Open index.php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Stela
Forum Commoner
Posts: 46
Joined: Tue Aug 12, 2008 12:38 pm

Open index.php

Post by Stela »

Hello…

How can I tell my server to open index.php instead of index.html?

Thank you.
User avatar
jayson.ph
Forum Contributor
Posts: 165
Joined: Mon Jan 02, 2012 9:20 am
Location: MP
Contact:

Re: Open index.php

Post by jayson.ph »

create new index for html, i mean separation index for html.
Stela
Forum Commoner
Posts: 46
Joined: Tue Aug 12, 2008 12:38 pm

Re: Open index.php

Post by Stela »

Sorry, didn't understand "separation index for html"
User avatar
Tiancris
Forum Commoner
Posts: 39
Joined: Sun Jan 08, 2012 9:54 pm
Location: Mar del Plata, Argentina

Re: Open index.php

Post by Tiancris »

If your server is Apache, you can change the priority order adding this line to an htaccess file:

[text]DirectoryIndex index.php index.html[/text]
Stela
Forum Commoner
Posts: 46
Joined: Tue Aug 12, 2008 12:38 pm

Re: Open index.php

Post by Stela »

Thank you!
User avatar
Tiancris
Forum Commoner
Posts: 39
Joined: Sun Jan 08, 2012 9:54 pm
Location: Mar del Plata, Argentina

Re: Open index.php

Post by Tiancris »

:D
Post Reply