AddType / .htaccess

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

AddType / .htaccess

Post by mikusan »

I would like my server to consider say .foo files as .php files
I figured the way to do it is in .htaccess...and to point you in some direction i found something like
AddType image/gif .gif
but that is for images i am trying to figure out how to apply this to php files ... perhaps ForceType is better...any help appretiated...

Or perhaps

Action add-footer /cgi-bin/footer.foo
AddHandler add-footer .php
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply