<Files ...> directive to forcetype extensionless files

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
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

<Files ...> directive to forcetype extensionless files

Post by mjseaden »

Dear All,

I've renamed my 'index.php' to 'index' and used ForceType in my .htaccess file to run 'index' as a php file.

However, now when I call my website, I get a 'Forbidden
You don't have permission to access / on this server.' error.

Can anyone tell me what line I might have to add to .htaccess to get it to use 'index' as the top level page of the site?

Many thanks

Mark
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

Code: Select all

DirectoryIndex index
<Files index>
ForceType application/x-httpd-php
</Files>
Post Reply