2

嗨,我在 WebMatrix 工作,我收到错误:

The page contains multiple canonical formats.

这发生在我在网站上运行 SEO 报告时。我收到 www.sitename.com 和 www.sitename.com/Default.aspx 的错误。

我知道我需要进行 301 重定向,但如果可能的话,这如何在 WebMatrix 内部完成?

4

1 回答 1

0
Response.RedirectPermanent(location)

或者

Response.StatusCode = 301;
Response.RedirectLocation = location;
于 2011-03-18T17:26:08.180 回答