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.
嗨,我在 WebMatrix 工作,我收到错误:
The page contains multiple canonical formats.
这发生在我在网站上运行 SEO 报告时。我收到 www.sitename.com 和 www.sitename.com/Default.aspx 的错误。
我知道我需要进行 301 重定向,但如果可能的话,这如何在 WebMatrix 内部完成?
Response.RedirectPermanent(location)
或者
Response.StatusCode = 301; Response.RedirectLocation = location;