Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.I have a use case where I rather would show a real 404 page (and return code) instead of showing the search page.
I deleted some subpages, but still get a lot requests for them from bots. So I rather would show them a 404 instead of searching for something that isn't there...
So I thing of such a box of exceptions like they are configurable whether you use a wysiwyg editor or not for some pages..
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | exceptions_for_showing-851116-8.patch | 1.85 KB | arjun_sreekumar |
Comments
Comment #1
finex commentedThe idea is very interesting!
Comment #2
zyxware commentedComment #3
hamburger commentedThe possibility to add exceptions to Search404's normal behavior would be a great addition to the module.
Displaying a 404 page or allowing redirection to a specific page. I can't get the redirect module and search404 working correctly simultaneously.
Comment #4
anish_zyxware commentedSo, is it ok to include a configuration for an exclustion list where the path is not handled by search404?
Comment #5
anish_zyxware commentedComment #6
hamburger commented@anish_zyxware Yes, this would solve our issues - and will help us better handle edge cases.
Comment #7
arjun_sreekumar commentedComment #8
arjun_sreekumar commentedComment #9
anish.a commentedComment #10
anish.a commentedTested, reviewed the code and found that its working fine.
Comment #12
anish.a commentedMerged the code.
Comment #13
anish.a commented