Make navigation bar subfolder-friendly

So that programme pages won't break by referring to relative paths
Change remaining files and corresponding links to PHP