« Return to Thread: Changing the default location for Friendly URLs

Re: Changing the default location for Friendly URLs

by Chris Kent-2 :: Rate this Message:

Reply to Author | View in Thread


James,

Yes, you can override the default 404 page processing of redirecting
to the home page by creating the following file /projects/
yourprojectname/errors/404.cfm

and place whatever code you need to handle 404's

Chris.

On Jun 23, 10:11 am, James Buckingham <Clarke...@...> wrote:

> Hiya,
>
> I'm working on a 404 error page for our new page. The job of the 404
> is to first check our old sites ( running on separate domains) to see
> if the page exists there and if it doesn't then throw a "Page not
> Found" page.
>
> It seems to be working fine if I put in something specific like
> this...
>
> http:///www.myNewWebsiteDomain.com/hr/aboutus/page.cfm
>
> ...however if I put in....
>
> http://www.myNewWebsiteDomain.com/hr/aboutus/
>
> It looks like the FarCry is grabbing it, checking the address against
> its Friendly URLs ( /hr/aboutus/ ) not finding it and sending the user
> to the home page of our new site.
>
> There are hundreds of these so I don't want to put them all into
> FarCry manually. Is there anyway of customising the current Friendly
> URL code to say I want to send them to the 404 rather than the home
> page?
>
> Cheers,
> James
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Changing the default location for Friendly URLs