I m newly working on laravel.
I created laravel project named as "blog" on localhost and for removing public/index.php
, I followed following process :
- cut and pasted .htaccess from
public/
folder to root i.e. blog - Renamed the server.php to index.php
- Then I created a test api in api.php route and echoed "Hello World".
Now when I go to project path from my localhost server like:
localhost/Blog/api/test
then its work properly.
But when I run same on a server like 192.101.111.555
,like :
192.101.111.555/Blog/api/test
then it showing NOT FOUND.
I am not getting how can I resolve this. And why its working fine on localhost but not working on server ?