Laravel: Duplicate project in same directory

Asked

Viewed 44 times

0

Good morning, everyone! I have a Laravel API on a server in the folder /www/var/html/api1, for second reasons I have to build another API on the same server, so I duplicated the one I had to facilitate/www/var/html/api2.

So far so good, but when I went to simulate a POST in api2, it is always redirected to api1, I do not understand very well about routes and I do not know if apache has something to do. Does anyone have any idea what it might be doing that any request I send to this server is handled by api1?

I tried to create a separate file in the folder /www/var/html/ and call him, opened a page of the informing the page you are looking for could not be found.

  • See if in the route file the requests made to your \ are not redirected to API 1.

  • Do you say in api2? I don’t understand

  • Ah now that I saw that you have duplicated the directories. In this case you see in the config of your apache if you do not have one Redirect to API1

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.