Created laravel project but pretty url is not working
I have created a laravel project "blog" in laragon and is successful but pretty url "blog.dev" doesn't work.
As you use port 85 for Apache, you must type:
Wow, thanks for the fast reply however, it still didn't work using http://blog.dev:85. here is a screenshot of it.
@leeyo-rapirap : Can you
If not, you can check this link to fix the issue with your hosts file:
Yes I can ping blog.dev but still can't view it in a browser.
@leeyo-rapirap : Your DNS resolves unwanted information. It should be
You should follow my link to fix it.
127.0.0.1 is IIS in my PC, 127.0.0.1:85 is Apache. I have followed all the recommendations in your link but none of them work.
Should I use php artisan serve instead?
@leeyo-rapirap : If you
ping blog.dev, it should show ...
It is DNS resolution problem - Your OS does not respect information in your hosts file - not related to IIS or Apache.
If you said you followed all the recommendations, can you show me your hosts file content? (click on the [h] in Laragon interface)
Here is my hosts file contents
Copyright (c) 1993-2009 Microsoft Corp.
This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
This file contains the mappings of IP addresses to host names. Each
entry should be kept on an individual line. The IP address should
be placed in the first column followed by the corresponding host name.
The IP address and the host name should be separated by at least one
Additionally, comments (such as these) may be inserted on individual
lines or following the machine name denoted by a '#' symbol.
22.214.171.124 rhino.acme.com # source server
126.96.36.199 x.acme.com # x client host
localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
These rules were added by the Unchecky program in order to block advertising software modules
0.0.0.0 0.0.0.0 # fix for traceroute and netstat display anomaly
@leeyo-rapirap : There is no
blog.devin your hosts file.
Add this below
I thought it was automatic in laragon but yeah I will add it and let you know.
@leeyo-rapirap : I thought so, too. However, for some reasons it was missing - strange.
I have added blog.dev in my hosts file and it's finally working. Thank you for fast responses and your help.
Help is much appreciated.
@leeyo-rapirap : My pleasure. I'm glad to see it worked for you