I just wanted to make sure this wasn't implemented before I submitted an official feature request issue. Sometimes I remove an attachment from a node, but Google still keeps it indexed for a while. I can see people still trying to access the file in my logs, but they get a 404. I think it would be cool if the 404 message was able to say "Page not found", but then use the missing URL as a search string to display other possible similar pages in the site under the Page not found message. David Norman http://deekayen.net/
On 29-Nov-05, at 12:43 PM, David K Norman wrote:
I just wanted to make sure this wasn't implemented before I submitted an official feature request issue.
Sometimes I remove an attachment from a node, but Google still keeps it indexed for a while. I can see people still trying to access the file in my logs, but they get a 404. I think it would be cool if the 404 message was able to say "Page not found", but then use the missing URL as a search string to display other possible similar pages in the site under the Page not found message.
See http://dev.bryght.com/t/wiki/CustomPageNotFoundSearchPage Steven has this in his sandbox or somewhere, I believe...called i404.module? -- Boris Mann Vancouver 778-896-2747 San Francisco 415-367-3595 SKYPE borismann http://www.bryght.com
Here is another variant by someone else (also based on Steven's). http://www.settingtheworldtorights.com/files/drupal/ii404-4.6.tar.gz On a small site this may be acceptable. However for a large site I would think twice, since reorganizing content can cause a lot of 404s. There are even cases where 404s from missing images, or confused crawlers, relative pathnames, RSS readers, ... etc such as this issue: http://drupal.org/node/13148 So, a search will be performed for all 404s, whether human generation or not. On 11/29/05, David K Norman <deekayen@deekayen.net> wrote:
I just wanted to make sure this wasn't implemented before I submitted an official feature request issue.
Sometimes I remove an attachment from a node, but Google still keeps it indexed for a while. I can see people still trying to access the file in my logs, but they get a 404. I think it would be cool if the 404 message was able to say "Page not found", but then use the missing URL as a search string to display other possible similar pages in the site under the Page not found message.
David Norman http://deekayen.net/
A simple solution: Createa a full PHP page: Include your standard 404 not found text ('sorry you didn't find what you were looking for') Parse the request URI and create a query string Use that to generate a link (to the search page) No automatic search result - but it gives the user the option to use the search with a pre filled query in the form of a link. <a href="search?keys=<?php print $query_string;?>">[whatever they searched for]</a> (or whatever the proper code would be these days) make that page your 404 page andre Khalid B wrote:
Here is another variant by someone else (also based on Steven's). http://www.settingtheworldtorights.com/files/drupal/ii404-4.6.tar.gz
On a small site this may be acceptable. However for a large site I would think twice, since reorganizing content can cause a lot of 404s. There are even cases where 404s from missing images, or confused crawlers, relative pathnames, RSS readers, ... etc such as this issue: http://drupal.org/node/13148
So, a search will be performed for all 404s, whether human generation or not.
On 11/29/05, David K Norman <deekayen@deekayen.net> wrote:
I just wanted to make sure this wasn't implemented before I submitted an official feature request issue.
Sometimes I remove an attachment from a node, but Google still keeps it indexed for a while. I can see people still trying to access the file in my logs, but they get a 404. I think it would be cool if the 404 message was able to say "Page not found", but then use the missing URL as a search string to display other possible similar pages in the site under the Page not found message.
David Norman http://deekayen.net/
On 11/29/05 9:37 PM, Andre Molnar wrote:
A simple solution:
Createa a full PHP page: Include your standard 404 not found text ('sorry you didn't find what you were looking for')
Parse the request URI and create a query string Use that to generate a link (to the search page)
No automatic search result - but it gives the user the option to use the search with a pre filled query in the form of a link.
<a href="search?keys=<?php print $query_string;?>">[whatever they searched for]</a>
(or whatever the proper code would be these days)
make that page your 404 page
good god man! escape them strings! -- James Walker :: http://walkah.net/ :: xmpp:walkah@walkah.net
I made a module once which you can find at http://cvs.drupal.org/viewcvs/drupal/contributions/modules/search404/ It shows a message that the page was not found and then presents the results of a search. On 11/29/05, David K Norman <deekayen@deekayen.net> wrote:
I just wanted to make sure this wasn't implemented before I submitted an official feature request issue.
Sometimes I remove an attachment from a node, but Google still keeps it indexed for a while. I can see people still trying to access the file in my logs, but they get a 404. I think it would be cool if the 404 message was able to say "Page not found", but then use the missing URL as a search string to display other possible similar pages in the site under the Page not found message.
David Norman http://deekayen.net/
participants (6)
-
Andre Molnar -
Boris Mann -
David K Norman -
James Walker -
Khalid B -
Lars Sehested Geisler