I created VirtualHost at my xampp in localhost for wordpress and add this code in httpd-vhosts.conf :
ServerAdmin webmaster@mysitefo
I don't have enough reputation to comment but if you are using Chrome and a .dev
local server domain, have a look at this post. Chrome have purchased the .dev
gTLD and now force the redirect to https://
. If so, consider using .test
or some other domain. A quick way to test it would be to try another browser.