Created laravel project but pretty url is not working
-
Hi,
I have created a laravel project "blog" in laragon and is successful but pretty url "blog.dev" doesn't work.
Regards,
Leo
-
@leeyo-rapirap :
As you use port 85 for Apache, you must type:
http://blog.dev:85
-
Wow, thanks for the fast reply however, it still didn't work using http://blog.dev:85. here is a screenshot of it.
Regards,
Leo
-
@leeyo-rapirap : Can you
ping blog.dev
?
If not, you can check this link to fix the issue with your hosts file:
https://serverfault.com/questions/452268/hosts-file-ignored-how-to-troubleshoot/452269#452269Ref:
https://forum.laragon.org/topic/582/solved-this-site-can-t-be-reached-err_icann_name_collision/3
-
Yes I can ping blog.dev but still can't view it in a browser.
Regards,
Leo
-
@leeyo-rapirap : Your DNS resolves unwanted information. It should be
127.0.0.1
You should follow my link to fix it.
-
Hi,
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 ...127.0.0.1
not127.0.53.53
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
space.
Additionally, comments (such as these) may be inserted on individual
lines or following the machine name denoted by a '#' symbol.
For example:
102.54.94.97 rhino.acme.com # source server
38.25.63.10 x.acme.com # x client host
localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhostunchecky_begin
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
0.0.0.0 tracking.opencandy.com.s3.amazonaws.com
0.0.0.0 media.opencandy.com
0.0.0.0 cdn.opencandy.com
0.0.0.0 tracking.opencandy.com
0.0.0.0 api.opencandy.com
0.0.0.0 api.recommendedsw.com
0.0.0.0 installer.betterinstaller.com
0.0.0.0 installer.filebulldog.com
0.0.0.0 d3oxtn1x3b8d7i.cloudfront.net
0.0.0.0 inno.bisrv.com
0.0.0.0 nsis.bisrv.com
0.0.0.0 cdn.file2desktop.com
0.0.0.0 cdn.goateastcach.us
0.0.0.0 cdn.guttastatdk.us
0.0.0.0 cdn.inskinmedia.com
0.0.0.0 cdn.insta.oibundles2.com
0.0.0.0 cdn.insta.playbryte.com
0.0.0.0 cdn.llogetfastcach.us
0.0.0.0 cdn.montiera.com
0.0.0.0 cdn.msdwnld.com
0.0.0.0 cdn.mypcbackup.com
0.0.0.0 cdn.ppdownload.com
0.0.0.0 cdn.riceateastcach.us
0.0.0.0 cdn.shyapotato.us
0.0.0.0 cdn.solimba.com
0.0.0.0 cdn.tuto4pc.com
0.0.0.0 cdn.appround.biz
0.0.0.0 cdn.bigspeedpro.com
0.0.0.0 cdn.bispd.com
0.0.0.0 cdn.bisrv.com
0.0.0.0 cdn.cdndp.com
0.0.0.0 cdn.download.sweetpacks.com
0.0.0.0 cdn.dpdownload.com
0.0.0.0 cdn.visualbee.net
127.0.0.1 laravel.devunchecky_end
-
@leeyo-rapirap : There is no
blog.dev
in your hosts file.
Add this below127.0.0.1 laravel.dev
127.0.0.1 blog.dev
-
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.
-
Good day,
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.
Great Thanks,
Leo
-
@leeyo-rapirap : My pleasure. I'm glad to see it worked for you
Good day!
-
Hi,
I also have the same problem, I have created a laravel project "awesome" in laragon and is successful but pretty url "awesome.oo" doesn't work.
-
can anyone help me? why my url .oo, but everyone .dev ??
-
-
@sakura-everdeen : Any error when browsing http://awesome.oo/ ?
@sakura-everdeen said in Created laravel project but pretty url is not working:
Hi,
I also have the same problem, I have created a laravel project "awesome" in laragon and is successful but pretty url "awesome.oo" doesn't work.