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
2011  Sep  Oct
2010  Feb
2009  Jan  Mar  Apr  May  Jun  Jul  Oct  Nov
2008  Jan  Feb  Apr  May  Jul  Oct  Nov  Dec
2007  Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2006  Jan  Feb  Mar  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2005  Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2004  Aug  Sep  Nov  Dec
Recent Comments
Check out my Blog Roll
/Htaccess
/Php

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

Hardware Keylogger
Campaign Yard Sign
Cheap Air Jordans
Jordans For Sale
Best Forum Hosting
Essay Help
Comprar Viagra
Precio Viagra
Commercial Loans
Viagra Sildenafil
Iphone Development Company
Cheap Domain Name Registration
Website Hosting Forum
Web Design
Essay Writing Uk