Fix redirection in subdirectories.