0

I'm using the pathologic module, and currently when a node is deleted users will get a 404 error. I want to set up a Rule such that when ANY node is deleted, a redirect is put in place to send users looking for that path to the HOME page.

Do I need Rules for this, and if so, what is the best method? I haven't been able to successfully get this to work so far because of the interaction between the nid and the pathologic-created redirect. Many of my users have been sent URLs in email, etc. and I don't want them to get a 404.

Thanks in advance!

Stephan Muller
  • 27,018
  • 16
  • 85
  • 126
Kelly Bell
  • 31
  • 1
  • 7
  • I am aware of the https://www.drupal.org/project/search404 module (Search 404), which gives users Search Results for 404s; but my client wants a very specific behavior, which is to be redirected to the site's home page. Ideally the solution will allow ANY site URL to be specified. – Kelly Bell Jul 04 '14 at 01:20

1 Answers1

0

One soulition could be for you:

  1. install https://www.drupal.org/project/hook_post_action module
  2. write your own module in which you implement hook_node_postdelete($node) in which you set a drupal_goto()
user3563097
  • 179
  • 8