I want to change my url without creating another file:
my index.php file is not in a folder… and the other pages are in folder “about -> index.php”, and so on… My footer for index page is like this:
<li><a href="about">About</a></li>
<li><a href="contact">Contact</a></li>
and the footer from a folder like “about” is like this:
<li><a href="../about">About</a></li>
<li><a href="../contact">Contact</a></li>
I want just 1 footer file not 2, is much faster to change data…
Please help ! ( I prefer PHP )
if you use a leading slash
/in your urls it will be base path. you’re doing a relative path currently, which means you need to leave a directory then link to something.like this: