1

I'm getting SSL errors when developing using .dev as a domain name. I believe it's because browsers are now automatically forwarding these to HTTPS://.

Any ideas how to get around this with Craft? I can change the extension but Craft requires .dev for local development I believe.

3
  • What setup are you using? MAMP or something else? Commented Jan 11, 2018 at 16:49
  • 1
    Possible duplicate of Problems setting up a local site Commented Jan 11, 2018 at 16:53
  • 1
    Craft does not require .dev for local development. You can use any “dev-sounding” domain, it does not require the .dev suffix.
    – Lindsey D
    Commented Jan 11, 2018 at 17:10

3 Answers 3

4

This seems missing from the other answers, so I feel the need to emphasize it here...

Craft does not require .dev for local development.

Your local URL can be anything you want, Craft does not care. There is no requirement whatsoever on using a .dev domain. That being said, it is recommended that you use a "dev-sounding" URL, in order to avoid the licensing nag warning. And even if you're getting the warning, it won't have any negative impact on the capabilities your site.

The other answers already address what to do if you do use a .dev URL, so I won't cover it here. You may also want to read this helpful answer on a related question.

3

Yea Google bought .dev a few years back and now chrome forces https on all .dev domains. I switched to using .test which has been reserved. So far, so good.

https://medium.engineering/use-a-dev-domain-not-anymore-95219778e6fd

1

If you are using Laravel Valet, the newest version takes care of that. You may either change the domain with valet domain test, or better: automatically secure your project it with valet secure.

It's very smooth.

2
  • Would you mind explaining how it is able to bypass the chromium engine logics? Or does it contain a custom browser? Commented Jan 11, 2018 at 16:55
  • It generates a self-signed certificate for each local domain. Very smooth. Commented Jan 11, 2018 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.