Re: How to get IIS7 to redirect with query string
So, I finally finished this project up. Thanks to Jonah and Andrew for their suggestions on this. The info was quite helpful. --RR On Wed, Apr 4, 2012 at 8:38 PM, .jonah jonah@creori.com wrote: In the rules section of your web.config it'd be something like: rule name=favorite color rewrite match url=((?:[a-z][a-z0-9_]*))\/((**?:[a-z][a-z0-9_]*))\/((?:[a-z]** [a-z0-9_]*))\/((?:[a-z][a-z0-**9_]*))\/((?:[a-z][a-z0-9_]*)) / action type=Rewrite url=index.cfm?q=favorite.** colorsamp;{R:2}={R:3}amp;{R:**4}={R:5} appendQueryString=false / /rule On 4/4/12 5:22 PM, Robert Rhodes wrote: Anyone out there know how to set up IIS7 to pass a query string? Any url construct is probably fine as long as I can pass four variables and it does not have a ? or a in it (per client's requirements). I am trying to get something like... http://mydomain.com/redir/a/**red/b/greenhttp://mydomain.com/redir/a/red/b/green to redirect to: http://mydomain.com/index.cfm?**q=favorite.colorsa=redb=**greenhttp://mydomain.com/index.cfm?q=favorite.colorsa=redb=green Any Ideas? -RR ~~**~~** ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-**Coldfusion-Anthology/dp/** 1430272155/?tag=houseoffusionhttp://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/**groups/cf-talk/message.cfm/** messageid:350638http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350638 Subscription: http://www.houseoffusion.com/**groups/cf-talk/subscribe.cfmhttp://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/** groups/cf-talk/unsubscribe.cfmhttp://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm ~| 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:350958 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
How to get IIS7 to redirect with query string
Anyone out there know how to set up IIS7 to pass a query string? Any url construct is probably fine as long as I can pass four variables and it does not have a ? or a in it (per client's requirements). I am trying to get something like... http://mydomain.com/redir/a/red/b/green to redirect to: http://mydomain.com/index.cfm?q=favorite.colorsa=redb=green Any Ideas? -RR ~| 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:350638 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to get IIS7 to redirect with query string
I take it you are using rewrite rules? If not there are two ways to do it, one is to use an add on for IIS at iis.net that will do it. Or I would recommend Helicon ISAPI rewrite, mainly because you can use .htaccess to define your rules and the fact the Helicon is awesome. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Apr 5, 2012 at 10:22 AM, Robert Rhodes rrhode...@gmail.com wrote: Anyone out there know how to set up IIS7 to pass a query string? Any url construct is probably fine as long as I can pass four variables and it does not have a ? or a in it (per client's requirements). I am trying to get something like... http://mydomain.com/redir/a/red/b/green to redirect to: http://mydomain.com/index.cfm?q=favorite.colorsa=redb=green Any Ideas? -RR ~| 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:350639 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to get IIS7 to redirect with query string
In the rules section of your web.config it'd be something like: rule name=favorite color rewrite match url=((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*)) / action type=Rewrite url=index.cfm?q=favorite.colorsamp;{R:2}={R:3}amp;{R:4}={R:5} appendQueryString=false / /rule On 4/4/12 5:22 PM, Robert Rhodes wrote: Anyone out there know how to set up IIS7 to pass a query string? Any url construct is probably fine as long as I can pass four variables and it does not have a ? or a in it (per client's requirements). I am trying to get something like... http://mydomain.com/redir/a/red/b/green to redirect to: http://mydomain.com/index.cfm?q=favorite.colorsa=redb=green Any Ideas? -RR ~| 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:350640 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm