lighttpd redirect to external url if file not found
Mon, 06/28/2010 - 14:57 — sandipBelow is a rewrite/redirect rule using url.rewrite-[repeat]-if-not-fi
# Redirect to external url if image file not found
url.rewrite-if-not-file = ( "^\/images\/.*\.jpg$" ; => "/redirect$0" )
url.redirect = ( "^\/redirect\/(.*)$" => "http://other.domain.tld/ $1" )
- sandip's blog
- Login or register to post comments