开发者

How to do a 301 Redirect in WebMatrix?

Hi I am working in Web开发者_开发百科Matrix and I am getting the error:

The page contains multiple canonical formats.

This happened when I ran an SEO Report on the site. I am getting the error with www.sitename.com and www.sitename.com/Default.aspx.

I know that I need to do a 301 redirect, but if possible how is this done inside of WebMatrix?


Response.RedirectPermanent(location)

or

Response.StatusCode = 301;
Response.RedirectLocation = location;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜