purge http and https versions