Moved PermanentRedirects setting to RouteLocalization class.