Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3977208
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:53:47+00:00 2026-05-20T04:53:47+00:00

Looking for a Drupal ‘Redirect When Deleted module. We have a classifed listing site

  • 0

Looking for a Drupal ‘Redirect When Deleted” module.

We have a classifed listing site built on drupal , so we have large numbers of listings that are published and then removed from the site on an ongoing basis. Currently when a listing is removed from the site we leave it unpublished (no content is ever deleted) and redirect the user to a search for simular listings. Giving them a nice “The listing you are looking for is no longer listed, here are more like it.”

We are looking to start archiving listings and removing the old unpublished listings from the site. We need a module that will keep the PathAuto generated path from the deleted node and 301 redirect the user to a search result for that listing. This should happen automatically once the listing is deleted, based on the taxonomy of the node.

I’m aware of the path_redirect module. It does not provide the automatic functionality we are looking for. I’ve searched around and before building my own I figured I’d post a question here, see if there is something that I’m missing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:53:47+00:00Added an answer on May 20, 2026 at 4:53 am

    Kind of shooting from the hip here, but it sounds as though you need custom functionality. On hook_nodeapi() $op == ‘delete’ you want to use path_redirect_save() to save the node’s current alias as a redirect pointing to the search page.

    This functionality might be something the maintainer of path_redirect would accept as a configurable option.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Drupal site that uses Organic Groups to represent companies. I'm looking
I am looking for a module that can create sitemap in Drupal, but couldn't
I am looking for a Drupal module that makes on-page notifications similar to those
HI all, i'm looking for a drupal module that allows users to : post
I am looking for a recipe for adding Drupal node records. I have identified
I'm looking for a download manager module for Drupal. Ideally, it would give the
iam developing a module in Drupal, which needs to have a locking machanism, When
I'm looking to create a custom module which hooks into the Drupal timeout procedure.
I am looking to use an open source CMS/blog site like WordPress or Drupal.
I tried the Audio module at http://www.drupal.org/project/audio but I'm looking for alternatives if better

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.