Forum Moderators: coopster
I started using php template includes with
an .htaccess file:
<Files ~ "\.inc$">
Order allow,deny
Deny from all
</Files>
AddType application/x-httpd-php .php .php3 .phtml .html
Now, I have to type in the index.html or php to access the
site.
users probably have to also.
Is there a another way and what is the explanation?
It looks like declaring the file type "html" as an application is bypassing the usual automatic redirect of "/" to index.html. In a default setup, domain.com and domain.com/ are redirected to the default index file. Declaring that filetype (index.html) as an application may bypass this function.
You could try a manual .htaccess redirect of domain.com and domain.com/ to domain.com/index.html, and see if that helps.
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^$ /index.html [L]
Jim