htaccess help please
Posted by: sandyRam (---.pres.cable.virginmedia.com)
Date: April 04, 2010 01:21AM

Hi,

I have edited my web server htaccess file as below to allow parsing of php in html files and it works fine on the live server. However i cannot get this to work on WAMPS - I am using a virtual host - php files are parsed fine, but the php is not parsed within html files. any ideas?

htaccess file from my live server contains:

AddHandler application/x-httpd-php5 .php
AddHandler application/x-httpd-php5 .html

I have copied this file into my local directory - I have also tried editing the htaccess file via the wamp menu - no joy there either.

I have also tried:

AddHandler application/x-httpd-php5 .php
AddHandler application/x-httpd-php5 .html
AddType application/x-httpd-php5 .php
AddType application/x-httpd-php5 .html

and

AddHandler application/x-httpd-php5 .php .html
AddType application/x-httpd-php5 .php .html

In my config file I have

<Directory "C:\websites">
Order Deny,Allow
Allow from all
</Directory>

** my website files are within C:\websites\

I have the same problem when I test this in the root directory C:/wamp/www so I don't think it's related to the virtual host as such.

Does anyone have any ideas? Am I missing something obvious?

thanks in advance

Options: ReplyQuote
Re: htaccess help please
Posted by: yfastud (Moderator)
Date: April 04, 2010 03:36AM


Options: ReplyQuote


Sorry, only registered users may post in this forum.