Solved

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

Posted on 2009-07-11
4
731 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

627 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