Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

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

.htaccess html to asp

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

New User

10+ Year Member

joined:Aug 18, 2003
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0


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.


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

Junior Member

10+ Year Member

joined:Mar 6, 2003
votes: 0


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.