samedi 28 novembre 2020

PHP header works on virtual host, but not working on localhost

I'm trying to change page using a button, I'm currently using virtual host (admin.test) that is made automatically by laragon. Here's my code:

<a href="/page.php" class="btn btn-primary">Next Page</a>

It works fine when I'm using virtual host, but when I'm trying to press the button using my localhost (localhost/admin) it says Not Found, The requested URL /sb-admin/admin/page.php was not found on this server.

Is there anything wrong with my code?




Aucun commentaire:

Enregistrer un commentaire