RE: Eliminating CFM extensions in IIS 7
Thank you. I was able to use this and adjust to the solution I needed. Really appreciate the assist. Robert Harrison Full Stack Developer AIMG rharri...@aimg.com Main Office: 704-321-1234 ext.121 Direct Line: 516-302-4345 www.aimg.com -Original Message- From: Jon Clausen [mailto:jon_clau...@silowebworks.com] Sent: Wednesday, December 10, 2014 10:05 AM To: cf-talk Subject: Re: Eliminating CFM extensions in IIS 7 You need to specify a rewrite handler for everything in the /news/ path. Assuming /news.cfm handles all of your requests for that path, your rule would look something like this: If you add this rule above the AddCFM rule, it will stop processing subsequent rules and should give you the behavior you are looking for. HTH, Jon On Dec 10, 2014, at 9:42 AM, Robert Harrison wrote: > > I'm no expert on this, and struggle with IIS config, so hopefully > someone on the list can help. I'm trying to use URLs like > mysite.com/news/2014/the-article. > > Below is a url rewrite that rewrites a request like mysite.com/news/ > to myside/news.cfm. That part works. But, if you add another > directory like > mysite.com/news/2014 it tries to rewrite to mysite.com/news/2014.cfm > and that does no good. Does anyone know if there is a way to get it > this to rewrite the .cfm only on the first url var after the first /? > > Thanks > > > > enabled="true">input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> > > > > > > Robert Harrison > Full Stack Developer > AIMG > rharri...@aimg.com > Main Office: 704-321-1234 ext.121 > Direct Line: 516-302-4345 > www.aimg.com > > > ~| 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:359790 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Eliminating CFM extensions in IIS 7
News was just an example. Can I do it for every first level item mysite.com/this or mysite.com/that without needing to add a specific rule for each? Robert Harrison Full Stack Developer AIMG rharri...@aimg.com Main Office: 704-321-1234 ext.121 Direct Line: 516-302-4345 www.aimg.com -Original Message- From: Jon Clausen [mailto:jon_clau...@silowebworks.com] Sent: Wednesday, December 10, 2014 10:05 AM To: cf-talk Subject: Re: Eliminating CFM extensions in IIS 7 You need to specify a rewrite handler for everything in the /news/ path. Assuming /news.cfm handles all of your requests for that path, your rule would look something like this: If you add this rule above the AddCFM rule, it will stop processing subsequent rules and should give you the behavior you are looking for. HTH, Jon On Dec 10, 2014, at 9:42 AM, Robert Harrison wrote: > > I'm no expert on this, and struggle with IIS config, so hopefully > someone on the list can help. I'm trying to use URLs like > mysite.com/news/2014/the-article. > > Below is a url rewrite that rewrites a request like mysite.com/news/ > to myside/news.cfm. That part works. But, if you add another > directory like > mysite.com/news/2014 it tries to rewrite to mysite.com/news/2014.cfm > and that does no good. Does anyone know if there is a way to get it > this to rewrite the .cfm only on the first url var after the first /? > > Thanks > > > > enabled="true">input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> > > > > > > Robert Harrison > Full Stack Developer > AIMG > rharri...@aimg.com > Main Office: 704-321-1234 ext.121 > Direct Line: 516-302-4345 > www.aimg.com > > > ~| 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:359788 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Eliminating CFM extensions in IIS 7
You need to specify a rewrite handler for everything in the /news/ path. Assuming /news.cfm handles all of your requests for that path, your rule would look something like this: If you add this rule above the AddCFM rule, it will stop processing subsequent rules and should give you the behavior you are looking for. HTH, Jon On Dec 10, 2014, at 9:42 AM, Robert Harrison wrote: > > I'm no expert on this, and struggle with IIS config, so hopefully someone on > the list can help. I'm trying to use URLs like > mysite.com/news/2014/the-article. > > Below is a url rewrite that rewrites a request like mysite.com/news/ to > myside/news.cfm. That part works. But, if you add another directory like > mysite.com/news/2014 it tries to rewrite to mysite.com/news/2014.cfm and > that does no good. Does anyone know if there is a way to get it this to > rewrite the .cfm only on the first url var after the first /? > > Thanks > > > > > > > > > > > > > > > > > > > > > > > Robert Harrison > Full Stack Developer > AIMG > rharri...@aimg.com > Main Office: 704-321-1234 ext.121 > Direct Line: 516-302-4345 > www.aimg.com > > > ~| 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:359787 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Eliminating CFM extensions in IIS 7
I'm no expert on this, and struggle with IIS config, so hopefully someone on the list can help. I'm trying to use URLs like mysite.com/news/2014/the-article. Below is a url rewrite that rewrites a request like mysite.com/news/ to myside/news.cfm. That part works. But, if you add another directory like mysite.com/news/2014 it tries to rewrite to mysite.com/news/2014.cfm and that does no good. Does anyone know if there is a way to get it this to rewrite the .cfm only on the first url var after the first /? Thanks Robert Harrison Full Stack Developer AIMG rharri...@aimg.com Main Office: 704-321-1234 ext.121 Direct Line: 516-302-4345 www.aimg.com ~| 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:359786 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm