>Why have a rule for each article when you could use the same rule for all of >them?
Because the ids do not correlate. >but I can figure out how to get the article.php?id=10 to be found using ISAPI rewrite I think you're close - the period and question marks are special regex characters that need escaping, and the parenthesis are redundant. Try: RewriteRule /article\.php\?id=10 /index.cfm?event=IndustryNewsDetail&IndustryNewsID=24 [I,O,RP,L] RewriteRule /article\.php\?id=11 /index.cfm?event=IndustryNewsDetail&IndustryNewsID=25 [I,O,RP,L] Here's a really useful regex tester: http://gskinner.com/RegExr/ Dominic 2009/11/12 lists <[email protected]> > > Why have a rule for each article when you could use the same rule for all > of > them? > > Try this out: > > RewriteRule (.*)/article.php?id=([0-9]+) > $1/index.cfm?event=IndustryNewsDetail&IndustryNewsID=$2 > > > -----Original Message----- > From: Chad McCue [mailto:[email protected]] > Sent: Wednesday, November 11, 2009 9:07 PM > To: cf-talk > Subject: ISAPI Rewrite > > > I am trying to use ISAPI rewrite for some 301 redirects and can't figure > out > the Reg Ex for it. > > I need [article.php?id=10] to be 301 redirected to > [index.cfm?event=IndustryNewsDetail&IndustryNewsID=24] > > and > > [article.php?id=11] to be 301 redirected to > index.cfm?event=IndustryNewsDetail&IndustryNewsID=25] > > but I can figure out how to get the article.php?id=10 to be found using > ISAPI rewrite > > currently trying with no luck > RewriteRule /article.php(\?)?(id=10) > /index.cfm?event=IndustryNewsDetail&IndustryNewsID=24 [I,O,RP,L] > > RewriteRule /article.php(\?)?(id=11) > /index.cfm?event=IndustryNewsDetail&IndustryNewsID=25 [I,O,RP,L] > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328296 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

