View Single Post
Old 12-14-2007, 04:08 PM   #1 (permalink)
pipelineae
Junior Member
 
Join Date: 12-14-07
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

pipelineae is liked by many
My site is downloading .htm files instead of displaying them..

Hi, my name's Tony and I'm new to this forum. Given my latest dive into web design I'll probably become a relatively active member of this forum.

Anyway, onto the problem:

I was recently trying to configure my .htaccess file to allow htm files to run php content, however I haven't had too much previous experience with root domain web design and I think I accidently replaced my sites default .htaccess file with a different one, lacking all the vital .htaccess info.

My page has now begun attempting to download htm pages instead of simply displaying them in my browser, but only when they are directly linked to.
eg: www.mysite.com displays fine, however www.mysite.com/index.htm attempts to download onto the computer. Firefox does this on more pages than IE does, however IE still does do it, so it doesn't seem to be browser specific. Plus, it started happening once I started messing around with my .htaccess files..

I tried clearing the broswsers cache incase it was some strange error regarding full cache, but no joy.

I also recently found that hotlinked images aren't displaying properly outside of my domain, which is kind of a drama since they're being used in several hundred auctions at the moment and editing all that would be nion impossible.

This is displayed when you attempt to load an image that is outside the domain:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log


The current contents of my .htaccess file are as follows:

Order deny,allow
<Files .htaccess .htpasswd .htuser .htgroups >
order allow,deny
deny from all
</Files>
DirectoryIndex index.htm

AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

AddType application/x-httpd-php .htm .html


The .htaccess file is in my root directory, incase that makes any difference.

If anyone knows anything that could help, I'd greatly appreciate it.. This is kind of a serious drama for me, and it's gonna cause issues if it's not fixed within 24 - 48 hours for sure.

I'm with GoDaddy, and they're no help (surprise surprise). I asked them for the code that is in their default .htaccess file and they told me that they don't offer support for 3rd party code..

Anyway, looking forward to your replies.

Regards,

Tony.
pipelineae is offline   Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links