| index file being served as a download [message #937] |
Sun, 11 May 2008 09:17  |
Haku Messages: 2 Registered: May 2008 |
|
|
|
I'm having some troubles on WAMP. This is the .htaccess file I am using:
AddHandler application/x-httpd-php .php .xyz
DirectoryIndex index.xyz
<Files constants>
ForceType application/x-httpd-php
</Files>
Options -Indexes
<Files .htaccess>
order allow,deny
deny from all
</Files>
.xyz is the file extension I am using for all my php files. When I access a directory including the file name, for example:
www.site.com/folder/index.xyz
There is no problem and the page serves up fine. But when I access the directory without the filename, for example:
www.site.com/folder/
The server forces a download of index.xyz, although the name of the page doesn't appear in the download window. I downloaded it one time to check that it was in fact the index.xyz. It wont serve up the page as a php file.
I have also checked that there were no .htaccess files in sub directories, or in the parent directory, although I am not that great with apache, so I could have missed something.
Can anybody help me out with this problem?
|
|
|
| Re: index file being served as a download [message #938 is a reply to message #937 ] |
Sun, 11 May 2008 15:11  |
Haku Messages: 2 Registered: May 2008 |
|
|
|
|
Whatever the problem, it seems to have resolved itself.
|
|
|