且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

阿帕奇重写URL创建链接问题

更新时间:2023-09-18 23:28:22

最简单的办法:只需设置相对于域根的链接,通过用斜线(RESP面向他们删除的点指的是当前文件夹中的链接。 ):

Easiest solution: Just set your links relative to the domain root, by fronting them with a slash (resp. removing the dot referring to the current folder in the link):

<link rel="stylesheet" type="text/css" href="/style.css" />
<a href="/">Logo</a>