Pages

March 2009
M T W T F S S
    Aug »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

modify .htaccess to include php script in html file

To include php script in html file (.htm, .html) , you would need to modify the .htaccess file located in your server.

Here is what you need to append ( the text in BOLD below).

# -FrontPage-

<Limit GET POST>

order deny,allow

deny from all

allow from all

</Limit>

<Limit PUT DELETE>

order deny,allow

deny from all

</Limit>

AuthUserFile /home6/peopleo3/public_html/_vti_pvt/service.pwd

AuthGroupFile /home6/peopleo3/public_html/_vti_pvt/service.grp

RewriteEngine on

RewriteCond ${LeechProtect:/home6/peopleo3/public_html:%{REMOTE_USER}:%{REMOTE_ADDR}:4} leech

RewriteRule .* /

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

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

Addhandler application/x-httpd-php .html .php

Share and Enjoy:
  • Digg
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • blogmarks
  • MySpace

3 comments to modify .htaccess to include php script in html file

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>