Solved

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

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

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

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

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). #…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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