开发者

Can I do a 301 redirect in robots.txt?

开发者 https://www.devze.com 2022-12-17 18:32 出处:网络
I have a site which has a whole host of legacy links, which now need to be ma开发者_C百科pped to new links.

I have a site which has a whole host of legacy links, which now need to be ma开发者_C百科pped to new links.

We need to update search engine results so that the legacy ones disappear and are replaced.

Because of the CMS we can't do this programatically, but I was wondering if we could set up a 301 redirect in the robots.txt file, which would update the search engine results at least.

I've seen conflicting information on the web for this, so was hoping for a definitive yay or nay.

Thanks Duncan


Why set it up for only search engines? What about users with bookmarks/history. Just setup your 301 redirects for all pages. Search engines will figure this redirection out..

0

精彩评论

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