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 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272954 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

