Vidahost and running php from within .htm files

Associate
Joined
1 Jun 2007
Posts
820
Anyone on Vidahost got php running from inside .htm files ?

I added:

AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html

to .htaccess but it seems it doesnt work Vidahost has some custom stuff going on.
 
Associate
OP
Joined
1 Jun 2007
Posts
820
Got it working with this:

AddType application/x-httpd-php5 .htm .html

Although SSI includes eg, #include virtual= dont work anymore.

EDIT: nvm got it working using:

AddOutputFilter INCLUDES .htm .php
 
Last edited:
Associate
OP
Joined
1 Jun 2007
Posts
820
You can specify the rewrite rules in .htaccess, was the point I was making.

Sure but:

"Doing it in .htaccess uses mod_rewrite, if you are rewriting."

Implies that it automatically uses mod_rewrite. Its separate from the .htaccess file and needs to be enabled by the webserver.
 
Back
Top Bottom