I'm using a custom 404 page (i.e. Admin | Config | System).
A feature I'd like to be able to use:
When the visitor types in www.mydomain.com/splldwrong, I'd like the 404 landing page to say something like:
Sorry, the page you requested, www.mydomain.com/splldwring, could not be found.
I could easily accomplish this if one of the following were true:
1. I could insert a token for the url of the mis-typed page in the field for the Default 404 page, i.e.
node/191/[node:url] (Note: this does not work. The token does not resolve in the url.)
or
2. I could use a token for the mis-typed page in my 404 landing page, i.e.
Sorry, the page you requested, [node:referring_url], could not be found. (Note: this, also, does not work. The token I'm looking for does not exist.)
Comments
Comment #1
dave reidDefault 404 page path does not support tokens at all.
Comment #2
stevengraff commentedThanks for your reply. I solved this as follows:
Followed by another little code snippet that redirects to my home page after a few seconds.
You can see it all work by going to http://www.plain-english.com/xyzzy
Today I stumbled across the Search 404 module... it looks like that may have given me what I was looking for also.