Help with rewriting CFWheels rule in web.config

23 views
Skip to first unread message

Cathy Shapiro

unread,
Apr 26, 2013, 1:59:06 PM4/26/13
to ColdFusion on Wheels
Hey you guys,

I have a situation where I need to change the web.config rewriting
rule that we use for CFWheels.
Instead of listing the files and folders to exclude, I need the rule
to exclude everything except what I list in the rule.
So in the rule, I would only have the wheels files and folders
listed.
Before I dust off my regular expressions book, has anyone already done
this or know an easy fix?

thanks,
Cathy

Andy Bellenie

unread,
Apr 26, 2013, 2:10:00 PM4/26/13
to ColdFusion on Wheels
That doesn't make sense to me... could you explain a bit more?



--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+u...@googlegroups.com.
To post to this group, send email to cfwh...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfwheels?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Cathy Shapiro

unread,
Apr 26, 2013, 2:25:28 PM4/26/13
to ColdFusion on Wheels
Hey Andy,

Sure. My client has an IIS7 server running Coldfusion 8.
They have a lot of proprietary software on their server and say their directories change a lot.
They are running the website that I built in CFWheels in the root of their server (why? I don't know and can't control), and they want the URL rewriting to only affect the CFWheels files and directories.
Their software is so proprietary that they can't even give me a listing of the directories so I could exclude them in the web.config file.
So you see my quandary.

thanks,
Cathy

--
Flash Pro Design
4646 Poplar, Suite 517
Memphis, TN 38117

Phone: (901) 921-1767
Fax: (901) 685-9054

http://www.flashprodesign.com

Risto

unread,
Apr 29, 2013, 5:48:04 PM4/29/13
to cfwh...@googlegroups.com
Hi Cathy,

Just remove the "negate" parameter from  <add input="{SCRIPT_NAME}" negate="true" you will get the result you want.

This will be a little pain for you because you have to list everything for your app. For example, you might have mydomain/dashboard/index. dashboard is really your controller, but you will need to list it because
on the url it looks like a folder. You'll see when you try it. Good luck, I don't see why they can't just run your app in a subdirectory:)


Risto

unread,
Apr 29, 2013, 5:50:32 PM4/29/13
to cfwh...@googlegroups.com
I just wanted to clarify when you remove negate what it's really saying is "Only apply URL rewriting to what I have listed"

Cathy Shapiro

unread,
Apr 29, 2013, 7:14:41 PM4/29/13
to ColdFusion on Wheels
Hey Risto,
Thanks so much!  I had tried that, and had the home page running, but couldn't figure out why the rest of the pages wouldn't load. Now I get it! You are a lifesaver, really!
:)
Cathy


On Mon, Apr 29, 2013 at 4:50 PM, Risto <ck.web...@gmail.com> wrote:
I just wanted to clarify when you remove negate what it's really saying is "Only apply URL rewriting to what I have listed"

--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+u...@googlegroups.com.
To post to this group, send email to cfwh...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfwheels?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages