Php Parsing In Html

Thursday 27th January 2005 07:03:03 AM

To parse php files in the .html extension for webpages create a .htaccess file and insert the following code:

AddType application/x-httpd-php .html

Upload the file to your root directory. From now on everything on your website with a .html extension will be equivalent to a php page.

You can also change or add extensions to the .htaccess file to whatever you want, e.g:

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

Now a page with the extension .toseef will also be parsed as a php file.

Posted by Piniyini in Htaccess, Php

<< Blogger Search Engine Friendly URL's   Toseef's Blog   Php Htaccess 301 Redirect >>

post comments feed1 comment       Ctrl + Enter to comment
<< Blogger Search Engine Friendly URL's   Toseef's Blog   Php Htaccess 301 Redirect >>
Post a comment   Track comments
Search

Feeds (Subscribe via Google Reader)
blog posts feed Blog Posts
recent comments feed Recent Comments

Archives
July 2008
May 2008
April 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
September 2004
August 2004

Recent Comments
Check out my Blog Roll
/Htaccess
/Php

Says thanks to the following poeple for recently leaving a comment ...

Specss
Sami
Wally1973
Mari
Thebrowngirl
Debbie
Sally Feser
Specs
No One
Sobi
Akanksha
Amir
Lost Bedouin
Piniyini
Ash