do-it-yourself universal header/footer.php

后端 未结 3 785
情歌与酒
情歌与酒 2021-01-25 10:54

I wanna make universal header/footer include files.
Universal here means to be applicable in files on any directory level without need to add “../” at any deeper level when

3条回答
  •  自闭症患者
    2021-01-25 11:38

    You could have the url in the CSS be an absolute path (one that starts with /). Then it will work regardless of where on your site the user has browsed.

    Alternatively, you could use URL rewriting mod_rewrite to make the URL the user visits stay in the top level.

提交回复
热议问题