Re: Shorter URLs - How?

2010-09-21 Thread Michael Grant
If you are bound, bent and determined to do this in CF simply have a url parser in your app.cfc. However this is really best left to URL rewriting via the webserver. On Tue, Sep 21, 2010 at 11:04 AM, Stefan Richter ste...@flashcomguru.comwrote: Hi all, I'm a Flex developer with just enough

RE: Shorter URLs - How?

2010-09-21 Thread Andy Matthews
The best approach for this would be to use a URL rewriting tool such as ISAPI_REWRITE. That's an IIS thing. Doing it with pure ColdFusion, the best thing you could hope for is http://www.scribblar.com/index.cfm/k3ns5 andy -Original Message- From: Stefan Richter

Re: Shorter URLs - How?

2010-09-21 Thread Michael Grant
Doing it with pure ColdFusion, the best thing you could hope for is http://www.scribblar.com/index.cfm/k3ns5 Untrue. I myself have written a cf based url rewrite before I knew how to do it via the webserver. He can achieve exactly what he wants by using IIS (or whatever) to point to a .cfm

Re: Shorter URLs - How?

2010-09-21 Thread Russ Michaels
IIS7 has a built in url rewriter, so no need to isapi_rewriter. It works very similar to the mod_rewrite for apache in that the rewrite rules are store din a file within your website root called web.config, so it is portable between servers running IIS7+ If you want it to be portable betweeen any

RE: Shorter URLs - How?

2010-09-21 Thread Jacob
With IIS 7, you can download the URL rewrite module for free from Microsoft. -Original Message- From: Andy Matthews [mailto:li...@commadelimited.com] Sent: Tuesday, September 21, 2010 8:22 AM To: cf-talk Subject: RE: Shorter URLs - How? The best approach for this would be to use a URL

Re: Shorter URLs - How?

2010-09-21 Thread Jacob Munson
Everybody else has given good advice, but I wanted to show you some code to do what you originally asked for. I searched for a small bit of code that Sean Corfield posted to his blog, and I can't find it. But he did add URL rewriting to his FW/1 framework. I'd wager it's close to the same code

Re: Shorter URLs - How?

2010-09-21 Thread Russ Michaels
here also is a tutorials. http://tutorial557.easycfm.com/ On Tue, Sep 21, 2010 at 5:40 PM, Jacob Munson yacoub...@gmail.com wrote: Everybody else has given good advice, but I wanted to show you some code to do what you originally asked for. I searched for a small bit of code that Sean

Re: Shorter URLs - How?

2010-09-21 Thread Jacob Munson
However this is really best left to URL rewriting via the webserver. I would also argue that it's not really bad to do URL rewriting within CF instead of in the web server. Sure, there may be high traffic situations where you're trimming miliseconds, but for most cases CF URL rewriting is a

Re: Shorter URLs - How?

2010-09-21 Thread Michael Grant
Meh, the syntax is nearly identical between the different options. It would take anyone with half a brain all of about an hour to switch the rewrite rules over from apache to IIS or vice versa. Sure it's personal preference I guess but I generally try to use the right tool for the job. Data

Re: Shorter URLs - How?

2010-09-21 Thread Jacob Munson
Sure it's personal preference I guess but I generally try to use the right tool for the job. Data processing is best left to databases. URL rewriting is best left to the server. And ColdFusion server can be left to serve out ColdFusion pages. I won't disagree. I just think that there are

Re: Shorter URLs - How?

2010-09-21 Thread Jason Fisher
To: cf-talk cf-talk@houseoffusion.com Subject: Re: Shorter URLs - How? Sure it's personal preference I guess but I generally try to use the right tool for the job. Data processing is best left to databases. URL rewriting is best left to the server. And ColdFusion server can be left to serve

Re: Shorter URLs - How?

2010-09-21 Thread Michael Grant
Not to argue, because you make good points, but just about every shared host I've ever used gives you a mechanism for url rewrite. In fact most offer really well documented steps on how to do it too. I think it's probably equally as hard for a new dev to understand url rewriting as it is to

Re: Shorter URLs - How?

2010-09-21 Thread Les Mizzell
I just think that there are cases where it makes sense to do URL rewriting in CF. Getting off topic, how does this affect SEO? What does googlebot or another search engine bot see when it's done this way? ~| Order the Adobe

Re: Shorter URLs - How?

2010-09-21 Thread Jacob Munson
They see the rewritten URL. Sent with my Android phone On Sep 21, 2010 4:21 PM, Les Mizzell lesm...@bellsouth.net wrote: I just think that there are cases where it makes sense to do URL rewriting in CF. Getting off topic, how does this affect SEO? What does googlebot or another search

Re: Shorter URLs - How?

2010-09-21 Thread Michael Grant
If you are doing it in cf then that means you are using IIS (or *nix equiv) to return a cf page for processing when it determines the file is not there. If you do it right you return the proper response in the cfheader for the url (mydomain.com/tinyurl). If you don't do it right the spider gets

Re: Shorter URLs - How?

2010-09-21 Thread Dan Baughman
Well not to get to technical but cf actually sees the rewritten URL. The bots see the seo URL before it is rewritten Dan Baughman On Sep 21, 2010, at 5:06 PM, Jacob Munson yacoub...@gmail.com wrote: They see the rewritten URL. Sent with my Android phone On Sep 21, 2010 4:21 PM,

Re: Shorter URLs - How?

2010-09-21 Thread Jacob Munson
Well not to get to technical but cf actually sees the rewritten URL. The bots see the seo URL before it is rewritten You're right, I was thinking the wrong direction. :) ~| Order the Adobe Coldfusion Anthology now!

RE: Shorter urls?

2002-10-29 Thread Matt Liotta
You could do something like the following. cfscript requestMap = CreateObject(java, java.util.HashMap); for(key in url) requestMap.put(URL| key, url[key]); uid = requestMap.hashCode(); /cfscript Matt Liotta President CEO Montara Software, Inc.

RE: Shorter urls?

2002-10-29 Thread Benjamin S. Rogers
If you put a .cfm on the end, you can handle the request in the Application.cfm page. If you are using IIS, you have to tell it not to check to make sure the page exists. This is a setting specific to the application mapping. Or, you can use an ISAPI extension (IIS) or mod_rewrite (Apache) to

RE: Shorter urls?

2002-10-29 Thread Kevin Graeme
http://www.makeashorterlink.com is where you've probably seen it done. I'm not sure how they do it either though. -Kevin Graeme -Original Message- From: Ian Lurie [mailto:ian;portentinteractive.com] Sent: Tuesday, October 29, 2002 12:27 PM To: CF-Talk Subject: Shorter urls? Hi

RE: Shorter urls?

2002-10-29 Thread Robert Everland
: Kevin Graeme [mailto:kgraeme;facstaff.wisc.edu] Sent: Tuesday, October 29, 2002 1:43 PM To: CF-Talk Subject: RE: Shorter urls? http://www.makeashorterlink.com is where you've probably seen it done. I'm not sure how they do it either though. -Kevin Graeme -Original Message- From: Ian

Re: Shorter urls?

2002-10-29 Thread Ian Lurie
Thanks - I found the UDF I was looking for: http://www.cflib.org/udf.cfm?ID=212enable=1 On 10/29/02 10:39 AM, Benjamin S. Rogers [EMAIL PROTECTED] wrote: If you put a .cfm on the end, you can handle the request in the Application.cfm page. If you are using IIS, you have to tell it not to

RE: Shorter urls?

2002-10-29 Thread Tony Weeg
I have done this by using a lot of session and client variables, and a settings panel that a user can set defaults with, and if there happens to be an variables passed between pages, I store them in session vars. ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet

RE: Shorter urls?

2002-10-29 Thread Paris Lundis
: Tue, 29 Oct 2002 12:42:58 -0600 Subject: RE: Shorter urls? http://www.makeashorterlink.com is where you've probably seen it done. I'm not sure how they do it either though. -Kevin Graeme -Original Message- From: Ian Lurie [mailto:ian;portentinteractive.com] Sent: Tuesday

RE: Shorter urls?

2002-10-29 Thread Matt Liotta
Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Ian Lurie [mailto:ian;portentinteractive.com] Sent: Tuesday, October 29, 2002 1:45 PM To: CF-Talk Subject: Re: Shorter urls? Thanks - I found the UDF I was looking for: http

RE: Shorter urls?

2002-10-29 Thread Miller, Kevin
Once upon a time, someone on this list described a process where they created a CFML page from IIS's 404 error page (404.html becomes 404.cfm) that pre-processes all incoming page requests. Basically, the IIS document root is completely empty and everything gets preprocessed by the 404 error

Re: Shorter urls?

2002-10-29 Thread Ian Lurie
To: CF-Talk Subject: Re: Shorter urls? Thanks - I found the UDF I was looking for: http://www.cflib.org/udf.cfm?ID=212enable=1 On 10/29/02 10:39 AM, Benjamin S. Rogers [EMAIL PROTECTED] wrote: If you put a .cfm on the end, you can handle the request in the Application.cfm page

RE: Shorter urls?

2002-10-29 Thread Shawn Kernes
: Shorter urls? http://www.makeashorterlink.com is where you've probably seen it done. I'm not sure how they do it either though. -Kevin Graeme -Original Message- From: Ian Lurie [mailto:ian;portentinteractive.com] Sent: Tuesday, October 29, 2002 12:27 PM To: CF-Talk Subject: Shorter urls

RE: Shorter urls?

2002-10-29 Thread Timothy Heald
Yeah, That UDF makes longer URLs. That reminds me I need to send Ray an update for that one. Tim -Original Message- From: Ian Lurie [mailto:ian;portentinteractive.com] Sent: Tuesday, October 29, 2002 2:02 PM To: CF-Talk Subject: Re: Shorter urls? You're right - I just tested

RE: Shorter urls?

2002-10-29 Thread Matt Liotta
: Tuesday, October 29, 2002 2:07 PM To: CF-Talk Subject: RE: Shorter urls? its a simple problem we have something similar at shortlinks.stubhub.com just a table with the url you want, an id, and some stats... -Shawn -Original Message- From: Kevin Graeme [mailto:kgraeme

RE: Shorter urls?

2002-10-29 Thread Kevin Graeme
29, 2002 12:52 PM To: CF-Talk Subject: RE: Shorter urls? simple: 1. person submits link via form to make shorter... 2. you insert data into database 3. when inserting one field called maybe unique is a random generated alpha numberic string... randomize and compare to existing data

RE: Shorter urls?

2002-10-29 Thread Paris Lundis
-0800 Subject: RE: Shorter urls? Once upon a time, someone on this list described a process where they created a CFML page from IIS's 404 error page (404.html becomes 404.cfm) that pre-processes all incoming page requests. Basically, the IIS document root is completely empty and everything

Re: Shorter urls?

2002-10-29 Thread Paris Lundis
: Tuesday, October 29, 2002 1:45 PM To: CF-Talk Subject: Re: Shorter urls? Thanks - I found the UDF I was looking for: http://www.cflib.org/udf.cfm?ID=212enable=1 On 10/29/02 10:39 AM, Benjamin S. Rogers [EMAIL PROTECTED] wrote: If you put a .cfm on the end, you can

Re: Shorter urls?

2002-10-29 Thread S . Isaac Dealey
You can create your parameters as a list or string and pass them as a single query string: http://www.site.com?detail,108,492 then use the list or the string to generate your variables for a a redirect: cflocation url=index.cfm?fuseaction=#listfirst(cgi.query_string)#catid=#l

RE: Shorter urls?

2002-10-29 Thread Mosh Teitelbaum
: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: S. Isaac Dealey [mailto:info;turnkey.to] Sent: Tuesday, October 29, 2002 2:20 PM To: CF-Talk Subject: Re: Shorter urls? You can create your parameters as a list or string and pass them

RE: Shorter urls?

2002-10-29 Thread S . Isaac Dealey
;turnkey.to] Sent: Tuesday, October 29, 2002 2:20 PM To: CF-Talk Subject: Re: Shorter urls? You can create your parameters as a list or string and pass them as a single query string: http://www.site.com?detail,108,492 then use the list or the string to generate your variables for a a redirect

Re: Shorter urls?

2002-10-29 Thread Christian Cantrell
Here's an interesting solution. It's not perfect (just threw the code together), but it works. It has the additional benefit of adding a level of security to your application because it hashes your query string in a way that cannot be reversed (essentially obfuscates it in a non-reversible

RE: Shorter urls?

2002-10-29 Thread Matt Liotta
;yahoo.com] Sent: Tuesday, October 29, 2002 10:08 PM To: CF-Talk Subject: Re: Shorter urls? Here's an interesting solution. It's not perfect (just threw the code together), but it works. It has the additional benefit of adding a level of security to your application because it hashes your query

Re: Shorter urls?

2002-10-29 Thread Christian Cantrell
, October 29, 2002 10:08 PM To: CF-Talk Subject: Re: Shorter urls? Here's an interesting solution. It's not perfect (just threw the code together), but it works. It has the additional benefit of adding a level of security to your application because it hashes your query string in a way that cannot