PHP Link issue

I have a header file that I use for several different pages. The problem is when I go to the folder, the links in the head file point to index.php instead of .. /index.php

Is there any feature to fix this or any work I am missing?

Thank! ~ Kyle G

+2


source to share


1 answer


Links in HTML? if so, you can use absolute paths in your links. for example connecting like this:<a href="/index.php">

If you are talking about include () / require (), then one solution is to specify your include path.



Or you can never serve html from subdirectories :) that has worked for me so far.

+3


source







All Articles