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.
我的网站中有一些死页,我只需要重定向。
问题是,如果您单击指向这些重定向页面之一的链接,则会发生重定向,但 URL 将保留为旧的死页。
示例:我单击页面 /a/,PHP 重定向到 /b/。发生重定向,显示 /b/,但 URL 保持 /a/ 直到我硬刷新 (CTRL+R) 页面。
那么有没有办法让 Barba 遵循 PHP 重定向并更新 URL 以显示正确的 URL?