Forum Moderators: coopster
AddType application/x-httpd-php .php
and add .htm and .html to the list like this...
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
It actually doesn't matter where you put them in your .htaccess file but it's a good idea to keep things organized :)
What this will do is pass all your .htm and .html pages through the PHP parser just like .php files.
The downside is extra server load so if it is just a couple html files you need this for you might want to look into using mod-rewrite instead.
William.
r = read
w = write
x = execute
the string is broken up into groups of three...
user - group - world
The most common setting for a .htaccess file is...
rw-r--r--
Which gives read/write permission to the owner and just read permission to everyone else.
Yours somehow has ans x in it. Since there is nothing to execute in the file this isn't going to allow anything to happen but I'm not sure why it is like that.
William.
These next two apply only to the third character in the last group (other permissions).
T The sticky bit is set (mode 1000), but not execute
or search permission. (See chmod(1) or sticky(8).)
t The sticky bit is set (mode 1000), and is search-
able or executable. (See chmod(1) or sticky(8).)