I would be weary of rewriting a pretty url to another pretty url.
Easier is to not use the CF SES urls at all, using IIS to rewrite to a
'regular' query string url. Something like:

RewriteEngine on
RewriteRule ^news/([0-9]{4})/([\w&\-/]+)?$  /news.cfm?year=$1&article=$2 [L,QSA]

Or somesuch.

Dominic

On 6 October 2011 15:58, Wil Genovese <[email protected]> wrote:
>
> Rob,
>
> The rule to do the provided by Russ example would be something like this:  
> (There may be more than one RegEx expression that will work.)
>
> RewriteEngine on
> RewriteRule ^news/([0-9]{4})/([\w&\-/]+)?$  /news.cfm/$1/$2 [L,QSA]
>
> This does an internal redirect meaning the URL the user sees is still the 
> SES/SEO friendly URL, but the ColdFusion application sees the rewritten URL 
> with the .cfm in it.  This part [L,QSA] means this is the 'L'ast rule to try 
> if it matches. QSA means that anything on the query string 
> (?page=2&blah=this) will be passed along as is on the query string.
>
> The fun is just beginning from here......
>
>
>
>
> Wil Genovese
> Sr. Web Application Developer/
> Systems Administrator
> CF Webtools
> www.cfwebtools.com
>
> [email protected]
> www.trunkful.com
>
> On Oct 6, 2011, at 8:21 AM, Russ Michaels wrote:
>
>>
>> Rob,
>>
>> you can use URL rewriting so
>> http://www.mysite/news/2011/this-is-my-story will be rewritten as
>> http://www.mysite/news.cfm/2011/this-is-my-story before it is passed
>> to CF, which will then work.
>>
>> If you are using IIS 7 then you have URL rewriting built in.
>> If you are using IIS 6 then I suggest Helicon APE, which is FREE for
>> up to 3 sites, and then only costs $29 per site or £99 per server and
>> will work with ANY Apache rules.
>>
>>
>>
>>
>> --
>> --
>>
>> Russ Michaels
>>
>> www.bluethunderinternet.com  : Business hosting services & solutions
>> www.cfmldeveloper.com        : ColdFusion developer community
>> www.michaels.me.uk           : my blog
>> www.cfsearch.com             : ColdFusion search engine
>>
>> sk
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347996
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to