Handling 404 File Not Found errors

I recently switched my regular web server website over to a WE standalone server site. All is well, except that Google has a few indexed links from the prior site that now result in 404 File Not Found errors. Is it possible to capture or redirect these 404 errors to the main site page or similar? It seems odd that WE standalone server wouldn’t be able to at least allow a 301 redirect to be implemented.

Thanks in advance for any help.

Not that odd. WE has always been pitched as a “web application” builder, not a website builder. With the exception of special/api URLs, all browser communication with a WE application is through its root path. Feature requests that might make sense would be some built-in ability to server static pages or have path handlers or some such thing.

To solve your immediate problem, you might consider using Apache to serve up the website proper and embed your app in a full-page frame. Then you could have Apache handle the missing pages, do redirects, etc.

You don’t need to embed it in a frame. You can configure either Apache or Nginx as front-end proxies to a standalone that can handle both redirection and serving resources outside of the app.

You do not need Xojo to do the redirects. This can be done through the htaccess file, which can be added without modifying your program.

See http://www.isitebuild.com/301-redirect.htm or google : moved permanently htaccess

I have done that and it works like a charm :slight_smile:

[quote=54239:@Michel Bujardet]You do not need Xojo to do the redirects. This can be done through the htaccess file, which can be added without modifying your program.

See http://www.isitebuild.com/301-redirect.htm or google : moved permanently htaccess

I have done that and it works like a charm :)[/quote]
This does not work like a charm when you use standalone web applications, as the OP does (and me, actualy).

Sorry to wake up this thread but there is a Feedback case for this: 31412

Please bump it up so this can be implemented. This wouldn’t be too much work for the Xojo developers.

Help make it happen, this really becomes a necessity.

Cheers,
Guy.