Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-07-11
4
Medium Priority
?
734 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 2000 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

Technology Partners: 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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

660 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