Webmaster Forum

Sponsored Reviews   PR6 Link Building Service   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 12-14-2007, 04:08 PM   #1 (permalink)
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  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 12-14-2007, 04:16 PM   #2 (permalink)
Contributing Member
 
Join Date: 06-11-07
Posts: 136
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is on the right pathCapo64 is on the right path
This might sound dumb, and I don't know much about htaccess, but did you try just taking out both addhandler lines and the addtype line?

Your server might do it by default if you do that
Capo64 is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-14-2007, 04:21 PM   #3 (permalink)
Junior Member
 
Join Date: 12-14-07
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

pipelineae is liked by many
I'll try that I guess.

That whole .htaccess file is created by me, I don't have any of the default one (if there was any) supplied by godaddy. I think I wrote over it with ftp.

I'm not 100% sure whether it's messing with the .htaccess file that's caused this, but it just seemed logical since my site only starting messing up once I did play with the .htaccess..

Capo64:
I removed that part of the code and now my site isn't working at all. Pages loaded as www.mysite.com give the internal 500 error, and so do pages linked as .htm

This is getting worse and worse..

I wonder if I can get GoDaddy support to just rollback my site or reopen the hosting or something so I'm back where I started..

I've got everything from the site on my pc, except the .htaccess file, so that might be easier..

Last edited by pipelineae : 12-14-2007 at 04:47 PM.
pipelineae is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-14-2007, 04:58 PM   #4 (permalink)
Contributing Member
 
Join Date: 06-11-07
Posts: 136
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is on the right pathCapo64 is on the right path
Ooh sorry, my server puts all that in automatically i guess, anyways, doesn't AddHandler work with multiple extensions?
eg: AddHandler x-httpd-php .php4 .htm .html

I searched on google and saw a few of those..

Also, is there a reason why your AddType has application/ and your addhandler doesnt?

Not trying to waste your time or anything, but I'd keep trying different things and see which one works.
Capo64 is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-14-2007, 05:10 PM   #5 (permalink)
Junior Member
 
Join Date: 12-14-07
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

pipelineae is liked by many
No idea.

I got all my .htaccess code from google cause I know nothing about it and I just wanted to run php functionality with htm files so I didn't have to do a full file extension overhaul just to run traffic reporting programs.

I have no deleted the .htaccess file (not before backing it up on my computer) and my site now loads again, yay! Also, hotlinking for my auctions is working again.

However, I STILL can't work out why my pages are trying to download instead of just loading in the browser, this is really weird.

At least I'm 1 step further than I was before..

If you want to view my page to check, it's:
http://pipelineae.com/

That one will load correctly, however this one will attempt to download:
http://pipelineae.com/index.htm

Actually, no it won't. I just followed those links and it worked..
But when I added www. to the latter, it attempted to download the index file..

Maybe it was the .htaccess file causing all the dramas and now it's just slowly clearing the server cache.
pipelineae is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-14-2007, 06:00 PM   #6 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
The second link works just fine to me, I mean the page is displayed in IE7.
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-14-2007, 06:11 PM   #7 (permalink)
Junior Member
 
Join Date: 12-14-07
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

pipelineae is liked by many
It seems all the pages load in IE. Most of them load in firefox, however there's still a select few giving me grief. From the page linked above, the link on the side "Free eBooks" - The top frame (ebooks-frame3.htm) doesn't load, and when I do download and open it with firefox, it's blank. Same goes for "Million $ Secret".

Maybe it's just my pc, I dunno.
pipelineae is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
want to add zip files for download on my site? jasonk1234 Coding Forum 16 08-05-2007 03:02 PM
A Puzzle : Downloading Pdf files Tibolt Web Design Lobby 2 04-05-2006 02:53 PM
Large site, lots of include files mckots SEO Forum 3 02-08-2005 10:40 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 11:37 PM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.