so, a little side effect of my changing my site around as much as i have is that there are some links out there in the wild that reference content that no longer exists. this is not the end of the world, but i typically like to keep track of them. (i.e. which pages aren't found). well, since sometime around drupal 4.2 there has been support for a feature known as 'clean urls' , which involves apache mod_rewrite, but essentially makes every requested path a valid one as far as apache is concerned. this means drupal should handle when requests are not found. and i wasn't the only one who thought so. anyway, after much back and forth between myself and the other developers, i managed to get a patch into drupal core that rectifies this. what's even better is that in addition to sending a proper 404 header and logging the not found request in watchdog... you can also specify a custom 404 page. thanks to Dries and Kjartan for accepting the patch and making sure it was sane. :)

James Walker

James Walker (a.k.a. walkah) is an independent developer and hacker. He is a long time Drupal developer, but these days spends more time in Python, Ruby and Javascript.

You can follow him on twitter or github.

related posts