After enabling the auto virtual host I wanted to try pretty url for my current project. Problem is it first showed index of/ of the project and after trying some solutions it now shows "This site cannot be reached!" error. The pretty url feature wotks withother projects.
What I tried:
.restarting laragon and pc
.enabeling nginx
.renaming the project
.clearing something in my apache server
Any suggestion?
Thank you in advance!
2
Answers
what i do is :
a. open laragon > menu > apache > sites-enabled > Delete all [auto]
b. if you are using ur own computer, please set Open as administrator to Laragon
c. make sure auto virtual host is checked on laragon
d. last, check your host file, don’t forget to un-check ‘Read-Only’ options
For me, I need to remove the ‘Read-Only’ option of
hosts
file inC:WindowsSystem32driversetc
. I’m using Windows, obviously.