Online Shopping : Computers : Programming : Languages : PHP : Installation and Setup : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

100 of 271 people (37%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do I set an apache server to run a php file with an html extension or no extension?
How do i use single extension like .html for multiple AddType in Apache e.g. .html file for server-p
How do i use single extension like .html for multiple AddType in Apache e.g. .html file for server-p
How do i use single extension like .html for multiple AddType in Apache e.g. .html file for server-p

Apr 21st, 2009 16:44
forum net tr, seo webmaster, osama said, Taksh Verdhan, i can do it, Mark Kronsbein, Tom Melendez, Vince Bird, unknown unknown, Ani Raj,


For no extension use this:
Only one File
<Files "foo">
ForceType application/x-httpd-php3
</Files>
or for all Files
ForceType application/x-httpd-php3
Add these Lines to .htaccess or httpd.conf
To have it parse files with any extension (including html) edit the 
following line of the srm.conf file or the .htaccess in apache to say 
something like this:
AddType application/x-httpd-php3 .php3 .html .htm
http://www.forumnettr.com
http://www.forumnettr.com/forum
http://www.firmanettr.com
http://www.videotrtube.com