Check if gallery exists (if not, redirect to root url).