Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
.htaccess command problem
Old 12-29-2007, 01:49 PM .htaccess command problem
Junior Talker

Posts: 2
Name: Mark Hamilton
Trades: 0
I've been using the following command in my .htaccess files without issue for years. The purpose is to allow php includes in normal .html and .htm pages.

Recently the server software was updated or changed and now whenever I browse a domain with the following command in the .htaccess file the browser treats the domain or .html page as a download and not a web page.

I believe there is a server side tweak or module to correct this but thus far the techs are not finding it. Any ideas?

Here is the command I've been using up to now without this problem:

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

Here is one of the problem domains. Even though the main page is index.htm because the above command is in the .htaccess file the domain doesn't work now. Has worked fine historically:

http://www.las-vegas-kung-fu.com

Any help you can provide would be much appreciated! http://www.webmaster-talk.com/images...es/biggrin.gif
Unistar is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-30-2007, 07:50 AM Re: .htaccess command problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The mime type is set up incorrectly.

The server is sending the ContentType header as "application/x-httpd-php" where it should be sending it as "text/html"

If the "server techs" can't find something so simple, it's time to find new hosting.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to .htaccess command problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09493 seconds with 12 queries