Solved

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

Posted on 2009-07-11
4
728 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 24834097

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

Author Comment

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

Accepted Solution

by:
ahoffmann earned 500 total points
ID: 24834899
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
ID: 24835099
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

756 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