What's the error?
On Feb 2, 2014 12:09 PM, "Rob Voyle" <robvo...@voyle.com> wrote:

>
> Hi Timothy
> Instead of redirecting to: mydomain.com
> <cflocation url="http://www.mydomain.com";>
> It is throwing an error rather than redirecting.
>
> How do I redirect?
>
> Rob
>
>
> On 2 Feb 2014 at 11:56, Timothy Heald wrote:
>
> >
> > It's no mystery, that's the correct response.  Trap the 404 error
> > for html
> > files at the web server and handle the cf side through either site
> > wide or
> > per application error handling.
> > On Feb 2, 2014 11:42 AM, "Rob Voyle" <robvo...@voyle.com> wrote:
> >
> > > <cfif notFoundUrl contains ".html" >
> > >         <cfset newUrl="http://www.mydomain.com"; &
> > > replace(notFoundUrl,".html",".cfm")>
> > >                 <cfif fileExists(newUrl) is "yes">
> > >                 <cflocation url="#newUrl#">
> > >                 <cfelse>
> > >                 <cflocation url="http://www.mydomain.com";>
> > >                 </cfif>
> > >         </cfif>
> > >
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:357566
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to