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?

3

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

<Location /ios-avatars/>
    ErrorDocument 404 /images/default.png
</Location>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.