Solved

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

Posted on 2012-04-13
4
730 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 80

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 80

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hiding/removing php extension - best practice 4 53
move expression web site to a new server 13 77
Want Win 10 Pro to search like Server 2010 or 2012 27 114
IIS 8 and certificate 8 21
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
What You Need to Know when Searching for a Webhost Provider
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 tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

733 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