I have a need to serve different 404 pages based on path prefixes. When using PURL+Spaces, I have several virtual sites rolled into one, where a path element may determine different look and feel. In my case, each of these subsites or sections would need to have a separate static 404 page.

Comments

tobby’s picture

Status: Active » Needs review
StatusFileSize
new2.1 KB

I've created a patch that handle path prefixing in most cases, assuming whatever mechanism that handles the prefixes (in my case, Spaces) sets a system variable override. If nothing handles that (the default case), the prefixing is ignored in this patch.

DirkOrion’s picture

StatusFileSize
new2.47 KB

Rerolled patch so that it'll play nicely with drush make.

jobeirne’s picture

Status: Needs review » Closed (fixed)

Thanks for the patches, guys. I've rolled them in and updated the README accordingly. Marking closed and fixed.