0

From an iOS app I upload small avatars of Apple Game Center users to a web server, into an /ios-avatars/ dir.

But some players do not have any pictures.

By using Apache mod_rewrite is it please possible to redirect "not found" requests to files like /ios-avatars/GC123456789.png to /images/default.png?

Alexander Farber
  • 714
  • 4
  • 16
  • 38

1 Answers1

3

You don't even need a rewrite for that. Just use an ErrorDocument...

<Location /ios-avatars/>
    ErrorDocument 404 /images/default.png
</Location>
Michael Hampton
  • 237,123
  • 42
  • 477
  • 940