Trying to get php includes to work in an html page
These were the .htaccess statements I tired one at a time, separated by line breaks. Each blank line is a different try.
AddType application/x-httpd-php .htm .html AddHandler application/x-httpd-php5 .html .htm RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html <FilesMatch ".(htm|html|php)$"> SetHandler application/x-httpd-php </FilesMatch>
you have chosen to open bike.html which is a: html file What should FF do with this file? |
One bit of code that did work, but in the wrong way was:
RewriteEngine on RewriteBase / RewriteRule ^([^.]+).html$ $1.php [L]
Anything else I can try?
baffled (of course that feels like normal to me now)
../lloyd
Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat
The KimW WSO
Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat
The KimW WSO
Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat
The KimW WSO