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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | multiple_404s-1331776-2.patch | 2.47 KB | DirkOrion |
| #1 | multiple_404s-1331776-1.patch | 2.1 KB | tobby |
Comments
Comment #1
tobby commentedI'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.
Comment #2
DirkOrion commentedRerolled patch so that it'll play nicely with drush make.
Comment #3
jobeirne commentedThanks for the patches, guys. I've rolled them in and updated the README accordingly. Marking closed and fixed.