Fritzbox is a kind router. Are you using a Fritzbox router? Maybe its gone haywire or maybe it has got a virus or something. Try re-setting it or updating it. Sounds to me like your networking has gone strange, rather then fault of MAMP or Codekit.
I can recommend Valet+ for local development, it’s free.
Since I had no images and css, I thought it would be some CORS issue, but there was only the Kirby htaccess file.
I tried a fresh Kirby starter kit and it worked just fine.
I had a made certificate for the problem-project in MAMP and had also tried to connect MAMP to the CodeKit certificate before, but nothing helped. I had set the CodeKit certificate to „always trust“ in keychain app long ago, but it didn’t do the trick this time.
So I set up a new Mamp server for the problem-project with no certificate and no SSL. And MAMP showed the problem-project just fine. Although the urls in that project are „https“, nothing went wrong.
Then I tried to open it using Codekit, but this time I set the URL to „.test“ not „.dev“. This is a trick from Codekits developer, because with „.dev“ Chrome and Firefox demand https, but not with „.test“. Must try „.oops“ next time, though, cause it suits me better.
Strange thing was, once I used „https“ in the url in Codekit, my FritzBox router would take over the url and change it to its name and my site wouldn’t show. WTF.
Golly golly golly - what a hussle with that security. That browsers wouldn’t allow a user access to his own site especially with Wifi off and on a localhost network.
Just to clarify - you can’t use “.dev” locally any more. The issue isn’t because it needs https to work, it’s because Google has bought it as a real domain name. Chrome switches to https and tries to find the domain on the internet, rather than locally. You could in theory bypass that by messing with your computers hosts file to redirect requests to .dev domains back to your machine but it’s simpler to just use something else.
Ive got a hunch that the Fritzbox is changing the URL because the DNS service on the router is not yet aware of the .dev domain being a real one, so it’s kind of getting stuck. I wonder if that issue persists if you set your computers DNS to use Googles rather then the router / isp DNS? If your not a fan of Google or have privacy concerns OpenDNS and Clourdflare also provide DNS services for free.
MAMP automatically inserts any domain you create as host into the hosts file, so no need to mess with this manually. But you are right that Chrome automatically redirect .dev domain to https, so using this should really be avoided.
I used to use .dev myself locally and Chrome (and Chrome based browsers) seemed to do it regardless of what was in the hosts file. I was able to view a .dev domain locally through BrowserSyncs built in proxy but that was patchy.
You’re hunge was right. The Fritzbox router has made some entries in the DNS network settings on my system. It is the IP of its configuration interface and a domain of “fritz.box”. I used to have there googles DNS servers but they are gone, after changing the router and the ISP.
I wonder how that router did it, but it filled out these settings. Is was its IP, what looked like a MAC Adress and a name (fritz.box). I deleted the IP and the MAC Adress and put Googles 8-things back in and all is still fine. All MAMP and CodeKit connections work plus - I still have internet… !