exclude .gif from redirect