Thanks pal that worked an absolute charm.

Rob

-----Original Message-----
From: AJ Mercer [mailto:[EMAIL PROTECTED] 
Sent: 19 March 2007 00:16
To: CF-Talk
Subject: Re: IIRF Rewrite Rules

Try this out

# www.mydomain.com/articles/6/i-wonder-how-i-achieve-this
RewriteRule  (?i)^/articles/([^/]+)/([^/]+)
/index.cfm?event=viewarticle&articleid=$1

This rule would also put 'i-wonder-how-i-achieve-this' into $2

On 3/19/07, Robert Rawlins <[EMAIL PROTECTED]> wrote:
>
> Hello Guys,
>
> My regex is pretty poor to be honest, and its somthing i REALLY need to
> start learning, so in addition to any help on this some reccomendations of
> books or resources on the subject would be greatly appreciated.
>
> I've currently got a bunch of urls for model-glue events, and most
> importantly a section for news reports, and further down the line blog
> posts. these looking somthing like this.
>
> www.mydomain.com/index.cfm?event=viewarticle&articleid=6
>
> Now what i'd like to achieve with the rewrite would be to use somthing
> like this.
>
> www.mydomain.com/articles/6/i-wonder-how-i-achieve-this
>
> So i can then link to my articles using the ID but also contain the title
> in the URL for the search engine friendlyness.
>
> How would the regex for this kind of thing plan out?
>
> Many thanks,
>
> Rob
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272967
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to