Forum Moderators: phranque
------------------------------------------
# -FrontPage-
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.online-music-directory.com
AuthUserFile /home/dmoore2/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/dmoore2/public_html/_vti_pvt/service.grp
------------------------------------
I added the following code to the bottom of the .htaccess file:
<Files test_file>
ForceType application/x-httpd-php
</Files>
When I link to the url [mysite.com...]
I get a page not found error. My server's error log lists the following:
Premature end of script headers: /home/dmoore2/public_html/test_file
Does anyone know what my problem could be?
Thanks
Try adding this line to your .htaccess file if you have this problem.<Files filename>
AcceptPathInfo On
</Files>
<Files test_file>
AcceptPathInfo On
</Files>
I've tried adding "AcceptPathInfo On" inside of the current files script:
<Files filename>
AcceptPathInfo On
ForceType application/x-httpd-php
</Files>
and neither method worked. Am I adding the code the wrong way or does it have to be in a particular order?
AuthUserFile /home/dmoore2/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/dmoore2/public_html/_vti_pvt/service.grp
There may be a problem with having Front Page extensions installed. That's what those _vti folders are. FP extensions and .htaccess don't get along 100%, you probably need to check with the host or reconsider using them and opt for SSI or PHP includes.