5 Mar 2014 at 16:29 #1 sithlord sithlord Associate Joined 1 Jun 2007 Posts 827 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.
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.
5 Mar 2014 at 19:21 #2 sithlord sithlord Associate OP Joined 1 Jun 2007 Posts 827 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: 5 Mar 2014
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
6 Mar 2014 at 03:37 #4 sithlord sithlord Associate OP Joined 1 Jun 2007 Posts 827 AHarvey said: wouldn't you just save them as .php flles instead of .htm or am I being dense? Click to expand... Files already existed. Renaming them would lose search traffic.
AHarvey said: wouldn't you just save them as .php flles instead of .htm or am I being dense? Click to expand... Files already existed. Renaming them would lose search traffic.
6 Mar 2014 at 13:30 #7 sithlord sithlord Associate OP Joined 1 Jun 2007 Posts 827 Could use mod_rewrite but its just as easy to use .htaccess.
6 Mar 2014 at 16:59 #9 sithlord sithlord Associate OP Joined 1 Jun 2007 Posts 827 Dj_Jestar said: Doing it in .htaccess uses mod_rewrite, if you are rewriting. Click to expand... No .htaccess is the directory level apache config file. Mod rewrite is a module which is separate and must be enabled in apache. They happen to use the same file AFIAK.
Dj_Jestar said: Doing it in .htaccess uses mod_rewrite, if you are rewriting. Click to expand... No .htaccess is the directory level apache config file. Mod rewrite is a module which is separate and must be enabled in apache. They happen to use the same file AFIAK.
6 Mar 2014 at 17:15 #11 sithlord sithlord Associate OP Joined 1 Jun 2007 Posts 827 Dj_Jestar said: You can specify the rewrite rules in .htaccess, was the point I was making. Click to expand... 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.
Dj_Jestar said: You can specify the rewrite rules in .htaccess, was the point I was making. Click to expand... 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.