You can only use a .dev domain if your .dev website is served over an https connection. For the domain to work correctly, you must first set up an SSL certificate.