Custom error page for incorrect portal page URL
561923Oct 27 2009 — edited Nov 2 2009Hi,
I have implemented the custom 404 error page for my portal in 2 ways.
1) The first way is by using "Errordocument 404 /404.htm" in the httpd.conf and pointing it to a 404.htm file placed in htdocs.
2) The other way is by selecting a portal page in the Global settings > Error Page section.
The first method works fine as it internally redirects and shows the content of 404.htm file where in the page address bar still shows the wrong URL. For any 404 encountered by the HTTP server the redirect is fine but if i give a wrong portal page url it still show the default Object not found. (WWC-50003) error. The HTTP headers shows a 200 (OK) for such a request.
To counter this i implemented the 2nd method as mentioned in the [Portal Confuiguration Guide|http://download.oracle.com/docs/cd/B14099_19/portal.1014/b19305/cg_basic.htm#sthref225]. This implementation has a problem as it physically redirects to the error page.
My requirement is to show the custom error page content with the wrong url still in the address bar. Has anybody implemented this earlier or has some idea as to how i should go about?
Thanks for your help.
Regards
Nirmal