Forum Moderators: phranque

Message Too Old, No Replies

.htaccess - Can it be used to parse htm as asp?

.htaccess html to asp

         

nacho_man

1:07 am on Dec 2, 2003 (gmt 0)

10+ Year Member



Hi,

I know this may be a bit unusual but I know you can use the .htaccess file to have .html files work as .shtml files. Can you do the same except make .html files prase as .asp files. If so what do I need to place in my .htaccess file?

Thanks for the help

jdMorgan

1:27 am on Dec 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



nacho_man,

Welcome to WebmasterWorld [webmasterworld.com]!

I believe what you want is the Action [httpd.apache.org] directive of mod_actions, or the AddHandler [httpd.apache.org] directive of mod_mime.

Jim

tstaheli

2:41 am on Dec 2, 2003 (gmt 0)

10+ Year Member



nacho_man,

You could set some MIME TYPE's with this in your .htaccess file.

AddType application/x-httpd-php .html

That is what I use for .html files to be parsed by the php server.