Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 07:31:30 PM

Pages: [1]   Go Down
  Print  
Author Topic: .htaccess SetHandler problem, help please  (Read 1255 times)
bkm66x
Newbie
*
Offline Offline

Posts: 3


WWW
« on: February 16, 2010, 07:49:39 PM »

I am using this in a .htaccess file to force a file named "index" to run as PHP.

<Files index>
SetHandler application/x-httpd-php
</Files>


It is working on two add-on domains with no problem. I can't get it to work in a subdirectory on the main domain. I get a 500 Internal Server Error.  I did change the account to PHP5 before this if it's relevant (but the other domains still work.) Apache version is 1.3.41

I've also tried ForceType application/x-httpd-php and ForceType application/x-httpd-php5 to no avail.

Any insight is appreciated.
Logged
MrPhil
Berserker Poster
*****
Offline Offline

Posts: 5083



« Reply #1 on: February 17, 2010, 07:18:31 AM »

So you have a file just "index", not "index.something"? It's a longshot, but is there any evidence that somehow it's being treated as a subdirectory rather than a file? Maybe getting a "/" tacked on the end? That might produce a 500 error if it thinks you're trying to apply a PHP handler to a directory. If that's what's happening, all I can think of is to rewrite a index/$ to just index.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: