Today i had tried to use the sub domain like admin.domain.com for admin panel by setting the custom url for admin panel in
system -> config -> Advanced -> admin -> admin base url -> Custom Admin URL
After changing the url with sub domain. Unable to login admin panel by sub domain. I'm getting too many redirect error. sometimes it going to base domain like www.domain.com. Even after clearing the cache problem still not solved. Anyone help me Regarding this issue, that will be highly appreciated.
Note: I had already tried the solutions on the similar post but nothing will work. And i'm using magento 2.2.6