But one problem that comes with using these it will often in 404.. In short, the simple change is to add your local host as DNS entry to your network preferences.. If you're interested in seeing the steps necessary to do this and some example code that wo not work, then read on.. Note that I'm going to be using screenshots for this and it will work just as well.. Depending on the operating system you're using, how you arrive at changing up DNS settings will vary.. If you're using macOS, then the Network and Advanced options for whatever adapter to use to connect to Internet will provide you with what you need to update.. On that screen, click on DNS tab then add 127.0.0.1 to the top of your list.. The main reasons is it it gives us something to test before making the above changes and then after making the above changes.. With that said, here's bit of code I was using that does not work without DNS set up above. I've found it useful to share both what kind of code may be causing the problem, Valet, and WordPress, then you know how to solve it..
Read more