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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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!
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.
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
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
: 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
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
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
: 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
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
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
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
: 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
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
: 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
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
-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
: 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
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
: (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
;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
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
;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
, 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
39 matches
Mail list logo