We help IT Professionals succeed at work.
Get Started

Is there a way to create a sort of "Pseudo Directory" using ColdFusion or IIS?

234 Views
Last Modified: 2015-12-05
Does anyone know of a way to create a kind of "Pseudo Directory"  (fake directory) so the browser believes it exists  and not toss an error?

I'm new to programming and the reason I want this is to create a more friendly URL using forward slashes instead of  hyphens to separate content and ideas for the area we wish to send the user.

We're using ColdFusion 11 Enterprise on Windows Server 2012 R2, IIS 8.5, and SQL2008.

URL ReWrite does not work correctly for me to do this (that is a currently open question of mine on the subject).

I could use Active ColdFusion Mappings but that would require a bit  too many to manage and there could be duplicates that may lead to errors. This needs to be simple. I can hardcode them into the URL by creating the directories on the fly but hoped this could be simpler with some function I don't know about.

https://www.experts-exchange.com/questions/28894359/URL-ReWrite-Friendly-URL-not-working-for-novice-programmer.html

I can use CFDirectory to create the directory okay, and use IIS to control the default document but that means creating lots of empty directories. That's not a big problem but if it's not necessary why bother?

I understand it is the client side that sees and executes the result of the browser but was wondering if there's some ColdFusion function, tag, etc, I've missed that might possibly do what I want?

EXAMPLE:
www.doman.com/files/#YEAR#/#DATE#/#category#/#numberid#/view.htm

I can create variables for the above and insert them but did not want to bother with forcing me to create the directories.
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2014
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE