I edited /etc/hosts file and entered below information :
127.0.0.1 test.com //working
127.0.0.1 https://test.com //not working .
from the above info, http://test.com is redirecting to 127.0.0.1, but https://test.com is not redirecting to 127.0.0.1 . Is there any way I can do that?
