Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对这条规则有疑问:
RewriteRule ^([^/]+)/(\d+)$ more.php?books=$1&tags=$2 [L]
在此规则之后,一切正常,但页面显示不正确。就像缺少 css。
提前致谢
当您有 CSS 文件的相对 URL 时,可能会发生这种情况。例如,如果您访问 URL/book-name/2并具有指向 的链接css/style.css,浏览器会将其解析为/book-name/css/style.css。
/book-name/2
css/style.css
/book-name/css/style.css
将您的 CSS 链接更改为绝对 URL,例如/css/style.css,您应该没问题。
/css/style.css