.htaccess tutorial

htaccess Elite


filename as php

Using PHP in and with htaccess

filename as php

Postby visitor » 22 Apr 2008 23:42

Hi, Greetings !

I have just moved to a new company, and have transferd all my files accross. Have been updating all my scripts, and 99.9 are now working :)

I use to have a phpBB archive script working, when it was called it use to display the contents of my phpBB in a nice looking page.

To be able to use it, I had a file called "archive" (No .php) when called it use to run as a php file. To get that to work I needed to place a .htaccess file in the same location.

Code: Select all
<files archive>
ForceType application/x-httpd-php
# AcceptPathInfo On # uncoment for apachie 2
</files>


so when I called the file "archive" it ran as a .php file ( i did uncomment the above line didnt work)

Code: Select all
www.myplace.com/archive


On this new server, I just get an error 500 server problem

Contacted host, they dont know :)
visitor
 
Posts: 1
Joined: 22 Apr 2008 23:33

Re: filename as php

Postby htaccess » 10 May 2008 00:39

what does your apache error log say?

Is your host using php as a cgi? if so then try php-cgi instead of the application/x-httpd-php
htaccess
 
Posts: 50
Joined: 28 Feb 2007 17:16


Return to PHP and htaccess