Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Custom error page for incorrect portal page URL

561923Oct 27 2009 — edited Nov 2 2009
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 30 2009
Added on Oct 27 2009
4 comments
1,367 views