PDA

View Full Version : .htaccess forcing files to be parsed as php


Thejavaman1
06-28-2002, 08:07 PM
well I ate my .htaccess file on acident :mad: and can't remeber how to force a file to be parsed as php.

Feyd
06-28-2002, 10:38 PM
easiest way:

<Files page.javaman>
ForceType application/x-httpd-php
</Files>

Also an easy way to make pages look like directories:

file : fakedir (no extension)
<Files fakedir>
ForceType application/x-httpd-php
</Files>

Or get a few pages with your own custom extension:

AddType application/x-httpd-php .tjm

Thejavaman1
06-29-2002, 12:05 AM
Thanks, I found out abou thr forcetype by some random guessing...