Rewrite is your friend! Love it, breathe it, pet it....

For instance, I believe with something like ISAPI rewrite: 
http://www.isapirewrite.com/ the configuration file is loaded 
dynamically, so all you'd have to do is programatically add rewrite 
strings to the config file for each url you'd map to, or a servlet would 
probably work. Either way - it sounds like you need something that'll 
sit above your application that'll process the urls correctly and pass 
them off to your log files (for statistical tracking purposes).

Erik Yowell

"Beer is living proof that God loves us and wants us to be happy."

- Benjamin Franklin

Mickael wrote:

>Hi All,
>
>I am hoping that someone on this list has worked through this before I 
>reinvent the wheel.  We have a small content management system that we 
>have written that allows users to make changes to their site.  We would 
>like to add a new feature where users can create gateway for marketing.  
>When our users create a new page on our system the URL ends up being 
>www.ourdomain.com/index.cfm?pageid=111 (or what ever number).  Our issue 
>now is that we would like to make pages that easier to read and print on 
>advertising.  So for example if they create a page that is connect to 
>Marketing they would like to be able to access that page via 
>www.domain.com/marketing
>
>The only way that I can see this working is to create an interface in my 
>CMS that would create a new folder in the webroot of thier choosing and 
>insert an index.cfm file in at folder with a <cflocation> tag point ing 
>to index.cfm?pageid=111 or whatever the url.
>
>This solution would work, but would create a ton of folders in our 
>webroot, and we also have our own folders for the app there as well.  My 
>question is there a more elegant way of handling this problem?  We have 
>played with the idea of adding an Intelligent 404 page but part of the 
>goal is to have their stats package also track the accesses to these pages.
>
>I was just wondering what other people are doing?  We are Using IIS as a 
>web server.
>
>Thanks
>
>Mike
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214791
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to