Page 1 of 1

<Files ...> directive to forcetype extensionless files

Posted: Tue Aug 17, 2004 7:06 am
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

Posted: Tue Aug 17, 2004 7:31 am
by redmonkey

Code: Select all

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