I'm using IIS rewrite rule from this question: https://stackoverflow.com/a/39552321/8388835
but redirect is not working when it contains a page, for ex.: www.example.com/somepage should be redirected to https://example.com/somepage, it works only with root path (www.example.com -> https://example.com). How to make it working with any specified page? Any help will be highly appreciated.