Я должен использовать 404 Не найденный или 410 Уведенных для электронной доски объявлений, когда тема удалена?

рекурсия является старой шляпой. вот взаимная рекурсия. начнитесь путем вызывания любой функции.

a()
{
    b();
}
b()
{
    a();
}

пз: но Вы просили самый короткий путь.. не самый творческий путь!

13
задан James A Mohler 30 November 2012 в 02:24
поделиться

3 ответа

Showing a 410 requires a little more effort than a 404 because to know it's a 410 you need to maintain at least a "ghost" of the former page in your database. If this is not a problem to you, I'd consider the 410 "better" and "friendlier" because it presents more information. If you don't want to be hassled with maintaining a graveyard in your database, then 404 is acceptable too, of course.

I don't like Alohci's approach of redirecting to a different page. The end result looks like the user ended up on the "input new topic" page (or whatever) by accident. This works, but I think a preferable solution would be to create a custom 410 page (or 404 page, if you don't want to support 410) with specific information for the case at hand. I.e. your 410 shouldn't just say "gone", it should say "this post has been deleted, here's a link to similar posts or a link to create a new post". Your "404" wouldn't have quite as much information available but it could still offer a subset of such information and links.

I guess the "custom 410 page" comes close in appearance to "redirecting with 301" but an important difference is that robotic users of your site (of which there are many!) will get the more accurate status, and know to purge the old link from their crawl index – this will ultimately save them and you some unnecessary traffic.

12
ответ дан 2 December 2019 в 00:03
поделиться

Ни то, ни другое. Поскольку вы отметили свой вопрос «SEO», я предполагаю, что вы хотите получить лучший ответ SEO. Если есть какие-либо обратные ссылки (исходящие с внешних сайтов) на вашу удаленную тему, весь «ссылочный вес» будет потерян со статусом 404 и 410.

Вместо этого вам определенно следует создать некоторые 301 редирект, которые указывают на корень сайта, корень форума или связанная категория. Таким образом, вы сохраните ссылочный вес и сможете решить, какие страницы вашего сайта принесут наибольшую пользу.

0
ответ дан 2 December 2019 в 00:03
поделиться

Я думаю, что правильный способ сделать это - отправить 410 Прошел какое-то время и через несколько недель / месяцев перейти на 404 Не найдено. Конечно, вам решать, стоит ли это потраченного времени и усилий.

4
ответ дан 2 December 2019 в 00:03
поделиться
Другие вопросы по тегам:

Похожие вопросы: