Here's some sample code
originalRequest = GetPageContext().getRequest().getRequestURL().toString();
parse_sitename = GetToken(Replace(originalRequest,"//",""), 2, "/?&=;");
<CFQUERY name="query_siteinfo" datasource="#Request.DB#">
SELECT * from SITE where lower(FILEPATH) = '#lcase(parse_sitename)#'
</CFQUERY>
-----Original Message-----
From: olivier [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 9:13 PM
To: CF-Talk
Subject: simple URLs like www.domain.com/go/2345
Hello !
Basically, I want to be able to use a simple URL that would forward to a
more complex one.
Like when you communicate on paper, you don't want the user to have to type
www.domain.com/products/index.cfm?action=this&product=that&disptype=1234&pro
mo=1234
but you'd rather have them use something simple like www.domain.com/1234
At the same time, you can take the opportunity to log that hit in another
table to run statistics.
The question is: how do you handle with ColdFusion simple urls like that,
that do not have a .cfm filename in the URL ?
Thanks so much !!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202073
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54