Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I exclude a directory from a url rewrite rule?

Posted on 2012-04-13
4
Medium Priority
?
736 Views
Last Modified: 2012-10-29
Hi,

I am using Url rewriting on my coldfusion application using the attached web.config file and it all works great but I now need to exclude a directory of /backoffice and all sub directories so when I navigate to this part of the site the url rewrite just ignores it and it works as normal.

I have researched on Google but am completetly stumped!!

url to ignore would be http://mydomain/backoffice anything other would redirect to index.cfm as per the rules.
web.config
0
Comment
Question by:Lmillard
[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 83

Accepted Solution

by:
David Johnson, CD, MVP earned 1500 total points
ID: 37844818
Try thisweb.config.txt
0
 

Author Comment

by:Lmillard
ID: 37850175
Sorry for the delay in response, I have amended the file but this still redirects to index.cfm when I go to /backoffice.

Do I need to restart IIS everytime I make and amendment to the .config file?
0
 
LVL 83

Expert Comment

by:David Johnson, CD, MVP
ID: 37851719
maybe not iis in full but that particular site yes.
0
 

Author Comment

by:Lmillard
ID: 37855396
Hi,

Tried this and it still catches it and redirects to index.cfm

Cheers
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Suggested Courses

604 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