Custom 404 Pages
G'day,
I am trying to target a custom 404 page hosted in Sites. In the web.xml file, if I set the error page location to:
- /HelloCS
- /some-html.html
That works. However, if I tried to send it to the Sites servlet, it wouldn't work. Nor if I tried to send it to a vanity URL, I am guessing the latter would not work anyway. For the former, I am sending it to something like:
/Sites?lookuppage=/404&lookuphost=/
And I know that works because I can get to it from the browser.
How can you get it working without writing a HTML page in the web app to redirect.