Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 5 of 5

This is a discussion on JaguarPC changed AddType to AddHandler in htaccess? in the Website Management forum
I was able to solve my issue in the course of writing this post, but I decided to post anyway in case it helps someone ...

  1. #1
    Tim
    Tim is offline
    Loyal Client
    Join Date
    Mar 2002
    Location
    Georgia, USA
    Posts
    146

    Post JaguarPC changed AddType to AddHandler in htaccess?

    I was able to solve my issue in the course of writing this post, but I decided to post anyway in case it helps someone else with a similar issue:


    For years I've used AddType in my .htaccess file to parse .html files for SSI on a particular website
    AddType text/x-server-parsed-html .html

    Today I realized that the web pages were not being parsed. I discovered that the .htaccess file was edited on 4/18/2011 6:07:12 PM and that AddType was changed to AddHandler.
    AddHandler text/x-server-parsed-html .html

    I changed it back to AddType but then the browser wants to download the web page as a file instead of loading and displaying it as a web page.

    Since my other websites on other servers weren't having issues and no other .htaccess file was edited, I took a look at the other .htaccess files. I found that on another website I had used
    AddHandler server-parsed .html

    I changed text/x-server-parsed-html to server-parsed in the .htaccess for the website having an issue, and this fixed it. I don't know what brought about the need to modify .htaccess files, but apparently JaguarPC could have done a better job of doing it.

  2. #2
    JPC Dream Team
    Join Date
    Apr 2008
    Posts
    708
    Hi Tim,

    The changes have been done on the servers where MySQL, Apache and PHP upgrades are being done as mentioned on this thread. The AddHandler format it was changed to, has been working correctly in the tests done earlier, can you please confirm on which server your site is hosted so I can check into the server settings ?
    Rizwan - Technical Support Manager
    JaguarPC

    Helpful Links
    Knowledge Base | Network Status | Current Specials

  3. #3
    Tim
    Tim is offline
    Loyal Client
    Join Date
    Mar 2002
    Location
    Georgia, USA
    Posts
    146
    Quote Originally Posted by JPC-Rizwan View Post
    Hi Tim,

    The changes have been done on the servers where MySQL, Apache and PHP upgrades are being done as mentioned on this thread. The AddHandler format it was changed to, has been working correctly in the tests done earlier, can you please confirm on which server your site is hosted so I can check into the server settings ?
    Hi Rizwan,

    I saw that thread and figured the edit was related to the upgrades, however, the abraxas server isn't listed.

    You are saying that AddHandler text/x-server-parsed-html .html worked correctly in tests? Even so, I believe it would have been helpful to let me know of the edits so that I don't overwrite it the next time I upload changes.

  4. #4
    草分け
    Join Date
    Aug 2006
    Location
    Bellthorpe
    Posts
    214
    It's as well to keep a copy of .htaccess.

    Some time ago one of my pages stopped working, and showed the source code as text. That was because JPC had (presumably after an upgrade) removed this line from .htaccess:
    Code:
    AddHandler cgi-script .exu .ex .exw .ecgi

  5. #5
    JPC Dream Team
    Join Date
    Apr 2008
    Posts
    708
    Quote Originally Posted by Tim View Post
    Hi Rizwan,

    I saw that thread and figured the edit was related to the upgrades, however, the abraxas server isn't listed.

    You are saying that AddHandler text/x-server-parsed-html .html worked correctly in tests? Even so, I believe it would have been helpful to let me know of the edits so that I don't overwrite it the next time I upload changes.
    Hi Tim,

    Thanks for the update, the thread was more specifically for MySQL upgrades and Abraxes was already running MySQL 5.0 , so a separate maintenance notice was sent to all clients on this server for Apache and PHP upgrades.

    For the syntax of AddHandler, I am checking into this as on few servers I am seeing the issue you have reported, although they are running same software versions as the rest of the servers.
    Rizwan - Technical Support Manager
    JaguarPC

    Helpful Links
    Knowledge Base | Network Status | Current Specials

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •