Custom 404 page

We are using Session-based authentication and have multiple websites. Some are HTML-based.

Is there a way of creating a single, generic ‘Page not found’ response? I have attempted using a WebSiteRule > HTTP Response Header doc and have attempted the DomCfg.nsf database - I could get neither to work.

DOMCFG.NSF - The documentation indicates that “Domino does not use customized error pages to display errors when authenticating with the server or accessing a database if session-based name and password authentication is enabled.”

Anyone doing this at your site?

Thanks in advance,

Marc

Subject: Custom 404 page

Marc,You are in luck and here is a URL link to the webpage:

http://www-10.lotus.com/ldd/today.nsf/62f62847467a8f78052568a80055b380/2aa6ecf8f295019085256b9c006fd147?OpenDocument&Highlight=0,custom,404,page

It talks about how to build custom pages based on website responses.

If you are still with problems then email me (it is in my profile).

HTH Cheers.

Subject: Custom 404 page

I opened a PMR through my Passeport advantage. This is Lotus answer :


I have escalated this query to our primary http developer team.

The answer is no, we cannot do this.

If it is not a notes url we cannot do customs errors pages.

Within notes there is some capability to customize some of the error

messages; there again it is limited.

The http stack was rewritten to a great extent in ND6, the httpd.cnf file

is no longer used in this codestream.


I pointed out to Lotus Technical Support that this situation was not acceptable for a professional web site like ours (http://www.latribune.fr)…

Subject: Custom 404 page

It’s been awhile since this thread but has anyone been able to get a custom 404 page to work with static HTML pages that are not found?

Subject: RE: Custom 404 page

No we have not.

In fact we have had to revert back to 5.11 which is not good news.

It defeats me why Lotus can not address this problem

Subject: Custom 404 page

Not for the HTML pages. The Domcfg method only shows a custom page for a non-existent url with .nsf in it ;(

Subject: RE: Custom 404 page

If you use a website rule I believe it will work. Just read the link on my previous response. I have created rules for HTML-base (non-NSF) on my webserver.

HTH cheers

Subject: RE: Custom 404 page

hi there,

could you try to explain, bit by bit, how creating a http header will solve the problem? Im not sure I’m getting your point. I used to have the httpd.cnf file re-directing the user to a html page with javascript, that performed a search - and through this search guided the user to a specific page, based on the last parameter of the url.

E.g. xxx.dk/media → search for media in a specific keyword on documents → present dokument…

Best regards from Pia

Subject: RE: Custom 404 page

As I see it there is no point at all to use the http header to try to create a custom 404 response page.

I have not been able to conclude that there are a way to solve this problem in domino. I want to be able to customize the 404 response page, so that I can catch all strange URLs people are using and pressent tem with a meaningful page.

Subject: RE: Custom 404 page

There is nothing custom about a 404 page if you use the domcfg.nsf approach. The domcfg approach does not know the difference between a 404 and say a 403.

I used the header to allow the form show special text because of a 404 was reached.

HTH

email me if you specific examples.

Subject: RE: Custom 404 page

I created a header with a special field set to the header for the 404. That way when the error form is called through the domcfg.nsf error mapping, the message is custom via the form. (I had some hide when going on to show certain things based on the header fields.)

What others have mention is true, but is using the header to pass data to the error form. The error mapping via domcfg.nsf is very general.

HTH

Joe

email me if you need any particulars.

Subject: RE: Custom 404 page

This is the problem we are all trying to get to the bottom of

ON NOTES 5.11

my http.cnf file ends with

ErrorPage multifail /404/404.htm

#EOF

/404/404.htm

is this

Loading Page Please Wait
UKVillages.co.uk

"No community lives in isolation"

This traps all errors not “.nsf” related and tries to return something sensible.

How is this done in D6 PLEASE!

Many thanks.

Subject: RE: Custom 404 page

Hi Joe

Thanks for a useful post.

I’ve tried using HTTP response header rule as you suggested. I can get it to work in an almost satisfactory way by creating a “HTTP Response header” rule with the following data:

Incoming URL pattern → /*

HTTP response codes → 404

Expires header → Do not add header

(custom header) → Name = “Refresh” / Value = “0;URL=/404/404.html”

This basically works like a tag, but it’s not ideal, as users see the default 404 error message flashing before they are redirected to our custom 404 page.

Is any other way to do this? What is the special field set you used to redirect to the domcfg.nsf error mapping?

Any help would be greatly appreciated…

Thanks

Helena

Subject: RE: Custom 404 page

Note that the redirection using HTTP Repsonse Headers does not seem to work when the setting “Show friendly http error messages” is enabled in Internet Explorer advanced settings.