I've been grappling with this problem for a few hours now and at this point I should probably just bite the bullet and do it the long way, but I still want to figure this out.
Basically, I want my .html files to run PHP scripts without having to change the extensions (and thereby all internal links as well). I looked it up, and immediately found that I just need to modify/create .htaccess with:
I'm running Apache on my computer through XAMPP. I test a .html with PHP code and it works beautifully.Code:AddType application/x-httpd-php .html
However, when I upload them to the actual website (hosted through GoDaddy), I get problems. First, the browser attempts to download my .html files instead of displaying them. After a few hours' search, I find http://forums.digitalpoint.com/showt...84#post7483543.
When I try that instead, the problem changes - I get a 403: Forbidden error every time I try to visit a .html file. Just to see what happens, I make a simple test.php file, and that displays correctly. So it seems to be just the .html files. There's nothing else in .htaccess denying me access. Once again, this same setup works fine locally.
At this point, I call GoDaddy's customer support number. As expected, the actual conversation lasts less than 2 minutes - I describe my problem, he immediately says he doesn't know how to fix it but he's heard it's "hard." Yay GoDaddy (not my choice, I'm working with a group).
So... if anyone has experienced these kind of issues, any help would be very much appreciated. Now, excuse me while I exercise my CTRL + F skills.