Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, on my site I have the following URL structure:
example.com/"termalias"/"date"/"title"
And I observe the following behaviour:
example.com/"termalias"/"something-random" ("termalias"/"something-random" is a non-existent alias) returns 200 and shows the contents of example.com/"termalias".
If some good guy adds a lot of malformed URLs such as these to search engines this probably could cause penalties from them.
Is there a way to redirect all malformed URLs to some closely matched URLs?
Comments
Comment #1
ShedPhotons CreditAttribution: ShedPhotons commentedI am currently puzzling over the same problem. It won't do to have users land on the parent page of a partially malformed URL. We would far rather show a custom 404 page.
Edit: I see this is discussed at length under: https://drupal.org/node/1091068 - in part, this behavior is "by design".