Solved

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

Posted on 2012-04-13
4
726 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
  • 2
  • 2
4 Comments
 
LVL 79

Accepted Solution

by:
David Johnson, CD, MVP earned 500 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 79

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
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.

831 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