Hi All,
I am getting ready to add “friendly urls” (getting rid of query strings) to 2 websites on the same server. The server is Windows 2003, IIS6, CF8, and hosts 2 live sites (and 2 dev sites, if it matters). I am leaning towards using Ionic IIRF rather than Helicon’s ISAPI ReWrite, it seems simpler to install and configure. Have any of you used both (or either?) - are there are pros and cons to each that I should be aware of? The licensed cost of Helicon is not an issue, so I’m more concerned about implementation issues.
An added issue – we MAY be upgrading the server at some point soon (4-6 months), which means we’d likely have IIS7, which I understand has rewrite capabilities. So if we do that, then I presume I would need to change over to use the IIS Rewrite, and reconfigure all my rules?
Thanks for any insight you can provide.
Kristin
Kristin Gitler
Web Developer
office + 585.899.4879
ITX
6780 Northern Blvd., Ste 201
E. Syracuse, NY 13057
www.itx.com
--
You received this message because you are subscribed to the Google Groups "Central New York ColdFusion Users Group" group.
To post to this group, send email to cfu...@googlegroups.com.
To unsubscribe from this group, send email to cfugcny+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfugcny?hl=en.
Two thoughts:
First, fortunately (at least from my quick recollection), most rewrite tools for IIS (including I’m pretty sure those two, and the IIS 7 feature) seem to use “standard” rewrite rule syntax. Of course, like with SQL, there can be vendor-specific variations, where perhaps some couple of things don’t work exactly the same way. Most times when I’ve looked into things with these and other rewrite tools for IIS, they have been pretty clear about such inconsistences (things they add, or things they don’t support that others might).
Second, all that said, here’s one other thing to consider: did you know that CF already supports a form of “search engine safe URLs” (another term for what you call “friendly urls”) out of the box? It may not be quite what you want, but it’s worth at least exploring.
It’s a feature added in CF7 that seems to have gone unnoticed by most (http://helpx.adobe.com/coldfusion/kb/coldfusion-mx-7-search-engine.html). The approach this enables (which may not suit your needs) is that it lets you call a page like somepage.cfm/someval1/someval2, and you can then access that value by various ways in the CGI scope. That page shows stripping it from cgi_script_name, but you may find it just appears in the cgi.path_info as (/someval1/someval2), whereas when you don’t offer such “extra path info” on the URL, the path_info holds the same value as cgi.script_name. This has been a source of confusion for many over the years, and things do vary based on the version of CF, the web server used, and more.
Anyway, if this may interest you at all, just create a test page which does a cfdump var=”#cgi#” and watch to see where what you type after the filename appears. But I realize that people may want to hide the .cfm and more, in which case other rewrite approaches (or still other approaches, just to hide the .cfm) may be better.
Hope that’s helpful.
/charlie
--
Fan of Ionics IIRF rewrite here. Was first turned on to it via CFWheels. Now using it on all the sites we host, for CFWheels as well as Adaptive Images which is a really nice way to render images for specific screen sizes without having to generate them separately. Free is nice, too. =)
My 2c
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Kristin Gitler
Sent: Wednesday, January 16, 2013 12:31 PM
To: cfu...@googlegroups.com
Subject: [cfugcny] Helicon or IIRF for rewrite?
Hi All,
--
Thanks Charlie! I didn’t know about that feature in CF7 – funny that went unnoticed. I think the other approaches will work better for me, but it’s good to know that it’s there.
Thanks,
Kristin
Kristin Gitler
Web Developer
office + 585.899.4879
ITX
6780 Northern Blvd., Ste 201
E. Syracuse, NY 13057
www.itx.com
Hey Marco, that Adaptive images does sound interesting. Would it be something with enough to discuss that it might be a good presentation? If so, would you consider it? And I’d be happy to have it on the Online CFMeetup, though I’d understand if there was any preference to offer it first locally there. :-)
/charlie
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Marc Funaro
Sent: Wednesday, January 16, 2013 1:27 PM
To: cfu...@googlegroups.com
Subject: RE: [cfugcny] Helicon or IIRF for rewrite?
Yep. Glad to help. :-)
Is it the “keeping the .cfm” that’s the problem? It may actually not even be a requirement. There are ways that requests can get passed into CF with other extensions, or no extension. Again, this SES feature in CF has been little-explored, I think.
Not denying the power/value of doing web server rewrites. Just trying to further an unsung possible alternative. :-)
/charlie
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Kristin Gitler
Sent: Wednesday, January 16, 2013 1:38 PM
To: cfu...@googlegroups.com
Subject: RE: [cfugcny] Helicon or IIRF for rewrite?
Thanks Charlie! I didn’t know about that feature in CF7 – funny that went unnoticed. I think the other approaches will work better for me, but it’s good to know that it’s there.
Thanks,
Kristin
Yes, that’s the problem. It may be worth looking into, but it may be quicker to do it the other way, for now, as I think there’s much more documentation on the rewrite software.
Thanks!
Kristin
Kristin Gitler
Web Developer
office + 585.899.4879
ITX
6780 Northern Blvd., Ste 201
E. Syracuse, NY 13057
www.itx.com
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Charlie Arehart
Sent: Wednesday, January 16, 2013 3:56 PM
To: cfu...@googlegroups.com
Subject: RE: [cfugcny] Helicon or IIRF for rewrite?
Yep. Glad to help. :-)
Is it the “keeping the .cfm” that’s the problem? It may actually not even be a requirement. There are ways that requests can get passed into CF with other extensions, or no extension. Again, this SES feature in CF has been little-explored, I think.
Not denying the power/value of doing web server rewrites. Just trying to further an unsung possible alternative. :-)
/charlie
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Kristin Gitler
Sent: Wednesday, January 16, 2013 1:38 PM
To: cfu...@googlegroups.com
Subject: RE: [cfugcny] Helicon or IIRF for rewrite?
Thanks Charlie! I didn’t know about that feature in CF7 – funny that went unnoticed. I think the other approaches will work better for me, but it’s good to know that it’s there.
Thanks,
Kristin
--
Thanks Marc,
That does sound interesting, I hadn’t heard of it used for that purpose.
Thanks,
Kristin
Kristin Gitler
Web Developer
office + 585.899.4879
ITX
6780 Northern Blvd., Ste 201
E. Syracuse, NY 13057
www.itx.com
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Marc Funaro
Sent: Wednesday, January 16, 2013 1:27 PM
To: cfu...@googlegroups.com
Thanks Brian – that may be the deciding factor, the upgrade issue.
Kristin
Kristin Gitler
Web Developer
office + 585.899.4879
ITX
6780 Northern Blvd., Ste 201
E. Syracuse, NY 13057
www.itx.com
Yep, that’s certainly true, and a reasonable point! :-)
/charlie
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Kristin Gitler
Sent: Wednesday, January 16, 2013 4:00 PM
To: cfu...@googlegroups.com
Subject: RE: [cfugcny] Helicon or IIRF for rewrite?
Yes, that’s the problem. It may be worth looking into, but it may be quicker to do it the other way, for now, as I think there’s much more documentation on the rewrite software.
Thanks!
Kristin
--
Hadn’t really thought of it. I guess in my old age I figured I have little to offer the CF community that they don’t already know or have access to via google. I learned and implemented Adaptive Images through the original PHP implementation combined with Ray Camden’s port of it… you can find info on his website about it. If after that you feel this would be worthy of a presentation, I’d probably want to do it at my local CFUG (Liverpool NY, typically) first to see how it goes over. Like I said, I can’t imagine just exposing everyone to Ray’s implementation wouldn’t be enough for developers, as it describes the problem, the solution, and the exact steps… and includes code that is pretty well structured... I don’t know where I fit in, in the CF community anymore. =)
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Charlie Arehart
Sent: Wednesday, January 16, 2013 3:56 PM
To: cfu...@googlegroups.com
Subject: RE: [cfugcny] Helicon or IIRF for rewrite?
Hey Marco, that Adaptive images does sound interesting. Would it be something with enough to discuss that it might be a good presentation? If so, would you consider it? And I’d be happy to have it on the Online CFMeetup, though I’d understand if there was any preference to offer it first locally there. :-)
/charlie
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Marc Funaro
Sent: Wednesday, January 16, 2013 1:27 PM
To: cfu...@googlegroups.com
Subject: RE: [cfugcny] Helicon or IIRF for rewrite?
Fan of Ionics IIRF rewrite here. Was first turned on to it via CFWheels. Now using it on all the sites we host, for CFWheels as well as Adaptive Images which is a really nice way to render images for specific screen sizes without having to generate them separately. Free is nice, too. =)
My 2c
Marc Funaro
--
Well, we could say about most any presentation that the attendees could learn what’s offered by just reading the docs for the thing, right? ;-)
Put it another way, I had not heard about this before it came up here. As cool as Ray’s blog is, I just can’t keep up with his and those of so many out there. And I suspect there are many others out there in the same boat. So, sure, if one could just somehow point people to it (http://www.raymondcamden.com/index.cfm/2011/9/6/Check-out-Adaptive-Images) then many would take that ball and run with it.
But a talk that discussed it, the benefits, the fork (the code, its use), the challenges (from reading comments, there are some of the same issues with rewriting that came up here), and such would probably have a welcoming audience.
Finally, let’s say that only 10% of a given audience might be interested in the topic. One challenge in local groups is that could mean only a few people show up to the meeting. With the Online meetup, 10% is 280 people. :-) Of course, it’s rare that a CFMeetup brings out 200 people—then again, when we consider those who might just watch a meeting recording, even a meeting with a small turnout might still “reach” far more people.
Anyway, I don’t say that to at all discourage your presenting it locally first. To be clear, I proposed that you may prefer that. I’m never trying to “poach” meeting topics from a local group. Just trying to encourage people to present. You mention feeling a little out of touch with the community. This is indeed where the online cfmeetup can help, whether as a place for you to present, or certainly for you to be able to stay in touch with things people do present. :-)
/charlie
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Marc Funaro
Sent: Wednesday, January 16, 2013 7:58 PM
To: cfu...@googlegroups.com
Subject: RE: [cfugcny] Helicon or IIRF for rewrite?
Hadn’t really thought of it. I guess in my old age I figured I have little to offer the CF community that they don’t already know or have access to via google. I learned and implemented Adaptive Images through the original PHP implementation combined with Ray Camden’s port of it… you can find info on his website about it. If after that you feel this would be worthy of a presentation, I’d probably want to do it at my local CFUG (Liverpool NY, typically) first to see how it goes over. Like I said, I can’t imagine just exposing everyone to Ray’s implementation wouldn’t be enough for developers, as it describes the problem, the solution, and the exact steps… and includes code that is pretty well structured... I don’t know where I fit in, in the CF community anymore. =)
Marc Funaro
What date is the gathering in February? May need to push it to March as February is pretty busy for me. I think you’d need to combine it because it’s a fairly straightforward setup.
I will be able to do March 12th, as long as everyone is patient… I haven’t done a “presentation” of any kind in a very long time and I’m probably pretty rusty. I don’t even have a laptop to demonstrate with anymore… =)
Sounds good… what time should I be there?
Got it. I’m not sure I even know the current location where the meetings are held… send it along when you get a moment!
Great to hear, and dittoing what Pete said, first, yes, even if it’s only 30 minutes it’s welcome on the Online CF Meetup. And to your feeling you’re perhaps “rusty” as a speaker, our group too is a patient bunch, so don’t worry about being polished. :-) So if you’d like to contact me off-list we can get you on the calendar (even tentatively if you like) for a meetup session for some Thursday (12p or 6p) from Mid-March onward. Drop me a note at cha...@carehart.org. If you prefer to wait until after you present, I’d understand that too. Whatever you prefer. Hope it goes well.
And let this be a lesson to all: there’s really no talk that’s “too niche” nor any presenter who’s “too green” to offer a talk. I find that most CFUG audiences are very patient and appreciative for whatever one may offer. If there’s some topic you notice no one’s talked about, feel free to propose it to your local group or to me. Especially in the Online CF Meetup, there’s always an audience for any topic. :-)
/charlie
From: cfu...@googlegroups.com [mailto:cfu...@googlegroups.com] On Behalf Of Pete Freitag
Sent: Thursday, January 17, 2013 3:18 PM
To: cfu...@googlegroups.com
Subject: Re: [cfugcny] Helicon or IIRF for rewrite?
That's great Marc, we'll add you to the schedule! We can lend you a laptop during the presentation, and I can assure you we have one of the best groups in the world to present in front of, it's a great place to hone your skills.
--
Pete Freitag - Adobe Community Professional
On Thu, Jan 17, 2013 at 3:13 PM, Marc Funaro <ma...@advantex.net> wrote: