About Me

My Photo
Amber
The Apple State, United States
Visit me at ambermcleod.com where I display my wares...
View my complete profile

Tag Cloud

Monday, April 26, 2010

Parsing php as htm on GoDaddy Hosting

NOT my area of expertise, but I tried every stinking line I could muster. If I wanted to take the time and read up on Apache and MIME types and mod_rewrites....this may have gone faster. But, what fun is that? I may have even said this wrong...parsing what as what??

I have files that contain php but I want to render them as htm. On GoDaddy (always the fun part -- cue eye roll). This is the line you need to add to your .htaccess file:


AddHandler x-httpd-php5 .php .htm .html


That's it! Hope it helps SOMEONE out there. Eesh...it took me long enough to figure the stupid thing!

0 comments: