check permanent redirect