I have built a website from scratch using HTML, CSS, and JS and I would like to use Local to view my website in a browser while I develop it further. In order to achieve this, I completed the steps below…
- Created a site in Local
- Opened the folder in which the website was stored in: /users/ me /Local Sites/ website /app/public/
- I deleted all the Wordpress files in the folder
- I replaced the /public/ folder with my website files I wrote
- Started website
And then… I got this error:
403 Forbidden nginx
And I also got this error: (Local router error)
Thank you in advance for any advice!
You should leave the
public folder in place and put your files there. Just replace the contents of
Right, that’s what I did. Sorry if that wasn’t clear in my post I meant I replaced the contents of
Looking at this site it seems to be a Permission, Ownership, or Empty httpdocs directory error because I already have an index.html in my website files.
Can you please screenshot or provide a listing of what’s in your
public folder? Feel free to block out any sensitive names.
In this case I would advise using the “Custom” environment. The Preferred environment will not use anything other than
index.php as the index.
Ok. Thanks so much! I’ll try that and get back to you on whether or not it works!
It worked! Thanks a million @clay!