SE-1079: Enhancing regex to match rhel7X releasever's
SE-1079: Avoiding a redirect loop
add test for RHEL version url rewriting