Using Apache Environment Variables to set custom ErrorDocument
- by Tad
I've got a set of RewriteCond rules that test for various mobile devices and then set environment variables like "env=device:.iphone" or "env=device:.smartphone" if the useragent matches an iPhone or Android device.
I'm trying to now redirect the user to custom-styled 404/500 server error pages for each device, by way of the error pages.
…