Solved

apache .htaccess  AddType application/x-httpd-parse .html  exception

Posted on 2009-07-11
4
719 Views
Last Modified: 2012-05-07
The following handler in my .htaccess file serves to route all .html requests to /php/story_builder/story.php, and it works great.

I need to make an exception for one file, googlehostedservice.html ,which i don't want handled php/story_builder/story.php
AddType application/x-httpd-parse .html 

Action application/x-httpd-parse "/php/story_builder/story.php?f="

Open in new window

0
Comment
Question by:drew22
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility

AddType application/x-httpd-parse .html
Action application/x-httpd-parse "/php/story_builder/story.php?f="
0
 
LVL 1

Author Comment

by:drew22
Comment Utility
didn't work. googlehostedservice.html gets processed by /php/story_builder/story.php
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 total points
Comment Utility
then you have to make a dummy rule, something like




AddType application/x-httpd-parse .html
Action application/x-httpd-parse "/php/story_builder/story.php?f="

0
 
LVL 1

Author Comment

by:drew22
Comment Utility
I'll assume that works. I added code in my php/story_builder/story.php to check for /googlehostedservice.html and not process it.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now