I have a Laravel Application hosted on example.com but I need to keep another simple PHP application (Named API) in that directory also such as example.com/api, but when I want to browse the example.com/api it gave me not found error. What I have to do to sort it out.
CodePudding user response:
The public directory is the document root of the web server. That is why you cannot access the api directory.
Place the api directory inside public. Be careful to protect any sensitive files.