When you click on a link to a php file, it is downloaded, and does not go to another page of the site

When you click on a link to a php file, it is downloaded, and does not go to another page of the site. There is such a code:

<nav id="logo">
    <a href="./index.php"></a>
</nav>

Here index.php - this is the main page of the file. When I click on this link (on the site), I download a file index.php , although in theory it should go to the main page of the site. Please tell me what I'm doing wrong and how to fix it?

Author: Kirill Peace, 2020-08-03

1 answers

Most likely the first, but everything happens:

1.You may not have installed PHP itself. Or it is forbidden to use it (if the host is some kind of). 2. Try to set the rights to the PHP file or configure the index files on the server

 0
Author: PHPWork, 2020-08-03 10:39:28