faqts

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

99 of 269 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

May 12th, 2008 20:30
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.stupidarticles.com
http://www.halazona.com
http://www.shikapika.com
http://www.stakoza.com
http://www.uploadarticles.com
http://www.ganazat.com
http://www.damima.com
http://www.tarabiza.com
http://www.articlesxarticles.com
http://www.articlesfreedirectory.com