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

Posts: 2
Name: Mark Hamilton
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
 
When You Register, These Ads Go Away!
     
Old 12-30-2007, 06:50 AM Re: .htaccess command problem
chrishirst's Avatar
Super Moderator

Posts: 11,885
Location: Blackpool. UK
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!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to .htaccess command problem
 

Thread Tools

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 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.13177 seconds with 13 queries