404 wordpress плагин: 404page – your smart custom 404 error page – WordPress plugin – 404 Solution — Плагин для WordPress

Содержание

All 404 Redirect to Homepage — Плагин для WordPress

I have a website, every time I login to Google webmaster tools, I found many new discovered 404 error links, the problem is not in 404 errors itself, but when Google see them and count them for you!, I think that this count used in the overall site evaluation and ranking, I decided to develop All 404 Redirect to Homepage WordPress Plugin to solve these errors in SEO way by redirecting them using SEO 301 redirection.

How to use the plugin?

The 404 error pages hurts the rank of your site, this smart plugin is a simple solution to handle 404 error pages by using 301 redirect.
Look at the following diagram which represent the 404 errors per time, we see an increase of error rate in the last time interval.

Our simple plugin will solve this by trying to redirect all 404 error pages to home page or any customized page, see the control panel for the plugin in the next image

After installing the plugin, make sure that it is enabled from the field status in the control panel above, if you want to disable the plugin functions, just set the status to disabled.

  • Redirection page.
  • 404 Error rate per time.

«All 404 Redirect to Homepage» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники
1.17
  • Bug fixing in functions.php «Notice Undefined variable: class_name ..»
1.17
  • display the latest URLs redirected since the plugin installed
1.16
  • fix upgrade message issue in the plugins page
1.15
1.14
  • add the ability to hide message
1.13
  • PHP 7.x compatibility — Fix deprecated class issue
1.12
  • bug in calculating the broken links count (this was affecting the error message)
1.11
1.10
  • Fix deprecated class issue
1.9
1.8
  • Fix for issue that may cause infinite redirect loop
1.7
  • Support Handling all 404 error pages when using default permalink structure.

404page – your smart custom 404 error page – WordPress плагін

With 100,000+ active installations the 404page plugin is the most used plugin to create a customized 404 error page in WordPress.

Bringing visitors to your website takes time and effort. Every visitor is important. The default 404 error page of most themes do not provide any information on what to find on your site. A first tme visitor, who does not know you, is left in a dead end and leaves your website. Set up a helpful custom 404 error page to keep him on your site.

This handy plugin allows you to easily create your own 404 error page without any effort and it works with almost every theme.

Usage

Create your custom 404 error page just like any other page using the WordPress Page Editor. Then go to ‘Appearance’ -> ‘404 Error Page’ and select the created page as your custom 404 error page. That’s it!

Why use this plugin?

Different from other similar plugins the 404page plugin does not create redirects. That’s quite important because a correct code 404 is delivered which tells search engines that the page does not exist and has to be removed from the index.

Different from other similar plugins the 404page plugin does not create additional server requests.

Requirements

The only requirement for this plugin is that you change the Permalink Structure in ‘Settings’ -> ‘Permalinks’ to anything else but ‘Plain’. This also activates the WordPress 404 error handling.

Docs & Support

Plugin Manual

Support Forum

Videos

A brief Introduction to the free WordPress Plugin 404page

A quick Overview over the Advanced Settings

“Force 404 error after loading page” explained

“Disable URL Autocorrecton Guessing” explained

“Send HTTP Status Code 410 for trashed objects” explained

“Compatibility Mode” explained

Compatibility

The 404page plugin was sucessfully tested by the author with the following themes
The 404page plugin was sucessfully tested by the author with the following starter themes
The 404page plugin was sucessfully tested by the author with the following plugins

For developers

Action Hook

The plugin adds an action hook 404page_after_404 which you can use to add extra functionality. The exact position the action occurs after an 404 error is detected depends on the Operating Method. Your function must not generate any output. There are no parameters.

Constant

If the 404page plugin is installed and activated it defines the PHP constant PP_404. Check existence of it to detect the 404page plugin.

Functions

The Plugin provides the following functions:

  • pp_404_is_active() to check if there is a custom 404 page selected and the selected page exists
  • pp_404_get_page_id() to get the ID of the 404 page
  • pp_404_get_all_page_ids() to get an array of page IDs in all languages

Read more

Native Mode

If you are a theme developer you can add native support for the 404page plugin to your theme for full control. Read more.

Do you like this plugin?

I spend a lot of my precious spare time to develop and maintain my free WordPress plugins. You don’t need to make a donation. No money, no beer, no coffee. If you like this plugin then please do me a favor and give it a good rating. Thanks.

Plugin Privacy Information

  • This plugin does not set cookies
  • This plugin does not collect or store any data
  • This plugin does not send any data to external servers

Peters’ Plugins Privacy Information Page

ClassicPress

This plugin is compatible with ClassicPress.

More plugins from Peter

Stay up to date

Follow me on Facebook
YouTube Channel

  • The default 404 error page of the Twenty Nineteen theme
  • Create a custom 404 error page
  • Select the created page as 404 error page
  • The custom 404 error page in action
Will it work with the theme I’m using?

This plugin is designed to work with as many themes as possible. It uses the WordPress Template System to detect and handle 404 errors. If your theme makes use of this Template System this plugin will work properly. If it does not the plugin offers a so called Compatibility Mode, which uses its completely own method to detect and handle 404 errors. If this plugin does not work properly, try to activate Compatibility Mode.

Are 404 errors redirected?

No, there is no redirection! The chosen page is delivered as a ‘real’ 404 error page. This results in a HTTP 404 code and not in 301 or 302, which is important for Search Engines to tell them, that the page does not exist and should be deleted from the index.

Is it possible to add custom CSS to the 404 page?

The 404page plugin adds a CSS class error404 to the <body> tag which can be used for extra styling.

Where can I get help?

Please use the Support Forum.

“404page – your smart custom 404 error page” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:

Учасники
11.2.1 (2020-01-04)
  • if W3 Total Cache is installed and caching is active URLs that result in an 404 error are automatically excluded from caching
11.2.0 (2020-01-01)
  • if WP Super Cache is installed and caching is active URLs that result in an 404 error are automatically excluded from caching
11.1.4 (2019-12-29)
11.1.3 (2019-12-29)
  • Plugin Foundation updated to PPF03, no functional changes
11.1.2 (2019-11-19)
  • exclude 404 page from XML sitemap generated by Jetpack
11.1.1 (2019-11-16)
  • from now on it is not only detected if Yoast SEO Plugin is active, but also if the sitemap feature is activated
11.1.0 (2019-11-10)
  • now uses Plugin Foundation PPF02 for plugin compatibility
  • introduces two new functions for developers pp_404_get_page_id() and pp_404_get_all_page_ids()
11.0.5 (2019-10-22)
  • bugfix for Yoast SEO XML Sitemap (see topic)
  • added a note to settings page if Yoast SEO is active
11.0.4 (2019-10-06)
11.0.3 (2019-09-01)
  • bugfix for REST API call (see here)
11.0.2 (2019-08-30)
11.0.1 (2019-08-13)
  • fix for PHP 7.1 – __construct() access level in subclass – this is an PHP error that was fixed in PHP 7.2, but I’ve changed my code to also work with PHP 7.1
11.0.0 (2019-08-13)
  • mostly rewritten based on my own newly created Plugin Foundation
10.5 (2019-04-01)
  • some more security improvements
10.4 (2019-03-31)
  • security vulnerability in AJAX call fixed (thanks to Julio Potier for pointing me to this)
10.3 (2019-02-21)
  • fix for compatibility with iThemes Sync (ticket)
10.2 (2019-02-19)
  • just another small change to prevent from potential problems with version 10
10.1 (2019-02-14)
10 (2019-02-14)
  • workaround for WordPress Permalink bug #46000
  • code improvement
  • performance tuning
9 (2019-01-24)
8 (2019-01-11)
  • fixed compatibility issue with latest WPML version
  • code improvement
  • UI improvements
7 (2018-07-16)
  • corrected wrong image path
  • added video links to admin page
  • code improvements
6 (2018-06-18)
  • exclude 404 page from XML sitemap generated by Yoast SEO
  • further UI-improvements
5 (2018-03-05)
  • show an indicator if the currently edited page is a 404 error page
  • minor code- & UI-improvements
4 (2018-03-05)
3.3 (2017-11-16)
  • support for right-to-left-languages added
  • faulty display in WP 4.9 fixed
3.2 (2017-10-05)
  • new feature to send an HTTP 410 error for deleted objects
3.1 (2017-07-24)
  • bugfix for Polylang (see topic)
  • bugfix for CLI (see topic)
  • add debug class to body tag
  • also add body classes for Customizr theme
  • do not add error404 class if already exists
  • further redesign admin interface
3.0 (2017-07-05)
  • new feature to force 404 error after loading page
  • new feature to disable URL autocorrection guessing
  • finally removed Polylang stuff disabled in 2.4
  • redesigned admin interface
  • code improvement
2.5 (2017-05-19)
  • hide 404 page from search results on front end (if WPML is active, all languages are hidden)
  • do not fire a 404 in Compatibility Mode if the DW Question & Answer plugin by DesignWall is active and a question has no answers
2.4 (2017-03-08)
  • ensure that all core files are loaded properly (see topic)
  • Polylang plugin does no longer require Compatibility Mode (see topic)
  • hide all translations if WPML is installed and “Hide 404 page” is active (thanks to the WPML guys for pointing me at this)
  • post status fix (see topic)
  • Enfold theme issue fix (thanks to the guys at Kriesi.at for supporting me)
2.3 (2016-11-21)
  • a few minor bugfixes solve some problems with page templates in certain combinations
2.2 (2016-09-26)
  • automatic switch to Compatibility Mode for several plugins removed
  • enhanced support for WPML and Polylang
  • remove the 404 page from search results (for all languages if WPML or Polylang is used)
  • remove the 404 page from sitemap or other page lists (for all languages if WPML or Polylang is used)
  • bugfix for author archives
  • confusing admin message removed
2.1 (2016-04-22)
  • introduction of selectable Operating Methods
  • several changes to Compatibility Mode for improved WPML and bbPress compatibility plus compatibility with Page Builder by SiteOrigin
  • Polylang compatibility
  • automatic switch to Compatibility Mode if WPML, bbPress, Polylang or Page Builder by SiteOrigin is detected
  • completely new Customizr Compatibility Mode (automatically enabled if Customizr is detected)
  • firing an 404 error in case of directly accessing the 404 error page can now be deactivated
  • WP Super Cache support
  • option to hide the 404 error page from the Pages list
  • 404 error test
  • plugin expandable by action
  • delete all settings on uninstall
2.0 (2016-03-08)
  • WPML compatibility
  • bbPress compatibility
  • Customizr compatibility
  • directly accessing the 404 error page now throws an 404 error
  • class error404 added to the classes that are assigned to the body HTML element
  • the settings menu was moved from ‘Settings’ to ‘Appearance’
  • translation files removed, using GlotPress exclusively
  • Read more
1.4 (2015-08-07)
  • edit the 404 page directly from settings page
  • Portuguese translation
1.3 (2015-01-12)
  • technical improvement (rewritten as class)
  • cosmetics
1.2 (2014-07-28)
  • Spanish translation
  • Serbo-Croatian translation
1.1 (2014-06-03)
  • Multilingual support added
  • German translation
1.0 (2013-09-30)

Как сделать, чтобы все страницы 404 перенаправляли на главную в WordPress

Многие владельцы сайтов сегодня игнорируют ошибки 404, считая, что они являются вполне безобидными. Однако эти ошибки могут повлиять на сайт в негативном ключе.

С одной стороны, это может вести к потере потенциальных клиентов. С другой стороны, вы можете столкнуться с падением трафика и потерей обратных ссылок.

Не игнорируйте ошибки 404. Вы можете легко использовать эти страницы для перенаправления посетителей на свою главную страницу. Сделать это можно путем использования плагина. Мы покажем вам далее, как это реализовать на практике.

Ошибка 404 – что это?

Для начала давайте посмотрим, что собой представляет ошибка 404.

Ошибка 404 – одна из наиболее распространенных ошибок при просмотре сайтов в сети. Эта ошибка настолько распространена, что вебсайты даже используют специальные страницы 404 для ее обработки.

404 – общий код состояния HTTP, который отображается, когда страница или URL, который вы пытались посетить, не могут быть найдены на сервере или на сайте.

К примеру, если сайт ведет на один из ваших постов в блоге, однако ссылка является неверной, то в таком случае посетители перейдут по ней на страницу 404 вместо фактического поста.

Согласно Google, ошибки 404 не оказывают негативного воздействия на показатели поискового ранжирования. Однако их все равно лучше исправить, если вы не хотите терять трафик.

Что приводит к ошибкам 404?

Причин может быть несколько. Как мы уже говорили ранее, к ним могут вести неправильные URL на сайте или неправильно введенные URL посетителями в адресной строке браузера.

Потеря контента из-за сбоев сервера или переноса сайта также могут вести к ошибкам 404.

Однако самая распространенная причина появления этой ошибки – обновление старых записей блога. Если вы обновляете старую запись, то вы обычно меняете как ее заголовок, так и ее URL. В результате этого посетители, которые будут кликать по старым URL в поисковой выдаче или в социальных сетях, будут перенаправляться на страницы 404.

Исправить это можно путем редиректа старых URL на новые URL-адреса.

Примечание: чтобы узнать, имеются ли на вашем сайте ошибки 404, войдите в свой аккаунт Google Webmaster Tools и проверьте наличие ошибок сканирования.

Лучшие плагины для редиректа

В WordPress имеется несколько разных плагинов для 404 редиректа. Вот некоторые лучшие плагины, которые вы можете использовать.

  1. Redirection

Плагин имеет более 1 млн активных установок. Он является одним из самых популярных плагинов для 404 редиректа в WordPress. Плагин бесплатный и простой в использовании. Он позволяет легко перенаправить трафик с битых ссылок к новым URL. Также он предлагает и другие условные редиректы – к примеру, редиректы пользователей, которые заходят с определенных версий браузеров.

  1. 5sec Redirect

5sec Redirect – платный плагин, который больше подходит для продвинутых пользователей. В дополнение к редиректу для неработающих ссылок, плагин также имеет и другой функционал: клоакинг URL, вывод статистики по редиректам, возможность работы с постоянными ссылками или без них.

  1. Safe Redirect Manager

Safe Redirect Manager – еще один популярный бесплатный плагин для задания редиректов в WordPress. Плагин идет с достаточно простым интерфейсом, который позволяет легко создавать нужные редиректы. По этой причине плагин можно рекомендовать новичкам. Он позволяет выбирать тип кода состояния HTTP.

  1. All 404 Redirect to Homepage

Этот плагин редиректа сильно отличается от других плагинов, доступных в WordPress. Вместо того чтобы вручную создавать редиректы для отдельных URL, он позволяет вам перенаправлять все 404 страницы на вашу главную страницу. Соответственно, любой пользователь, который столкнется с нерабочей ссылкой на вашем сайте, будет перенаправлен на вашу главную страницу и в итоге не увидит страницы 404.

Как перенаправить 404 страницы на главную

Наличие страниц 404 – важная часть для SEO и пользовательского опыта взаимодействия.

Мы рекомендуем использовать стратегию перенаправления всех страниц 404 на главную страницу, если у вас на сайте появляется много страниц 404, что может вылиться в отток посетителей. Если у вас только парочка таких страниц, то в таком случае лучше вручную воссоздайте контент и перенаправьте битые ссылки на него.

Шаг 1: Устанавливаем плагин All 404 Redirect to Homepage.

Чтобы перенаправить всех посетителей со страниц 404 на главную страницу, мы будем использовать бесплатный плагин All 404 Redirect to Homepage. Давайте посмотрим, как его установить и настроить.

Для начала войдите в консоль WP.

Перейдите в раздел Plugins >> Add New и найдите там плагин All 404 Redirect to Homepage.

Щелкните по Install, после чего Activate.

Если у вас установлен плагин кэширования, очистите кэш.

Шаг 2: Настраиваем плагин.

Чтобы настроить плагин, переходим в раздел Settings >> All 404 Redirect to Homepage.

Ставим 404 Redirection Status в Enabled.

Вводим URL своей главной страницы.

Щелкаем по Update Options для сохранения результатов.

Все! Готово!

Шаг 3: Тестируем плагин.

Чтобы узнать, работает ли плагин, вы можете выполнить простой тест. Введите неправильный URL в своем браузере.

К примеру, можно специально опечататься в каком-либо URL.

Если будет выполнено перенаправление на главную страницу, то плагин работает как положено.

Источник: wpkube.com

Redirect 404 Error Page to Homepage or Custom Page with Logs — Плагин для WordPress

Easily redirect WordPress 404 error pages to the homepage or any another page. Plugin supports both permanent redirects (HTTP response status code 301) and temporary redirects (HTTP response status code 302). Plugin will start redirecting 404 error pages to the homepage as soon as you activate it by using the 301 permanent redirect. To configure it open Dashboard -> Settings -> General Settings and scroll down to the bottom.

Please note that permalinks have to be enabled in Dashboard -> Settings -> Permalinks in order for the 404 Redirect to work properly.

New Feature: 404 errors can be logged with this plugin so you can examine what pages may be missing.

Redirect 404 Error Page is very useful for themes that have an ugly, uninformative 404 server error page that can’t be changed without messing with code and set to still return 404. Simply create a new custom 404 error page and activate the plugin — problem solved!
It’s also very useful in situations when a lot of content has been removed from the site. For those situations create a new page explaining what happened and simply configure Redirect 404 to use that page.

This is an ideal plugin for missing page redirection.

  • Redirect 404 Error Page Admin Page Screenshot

Follow the standard procedure:

  1. Upload the unzipped plugin folder to the /wp-content/plugins/ directory or install the plugin from Dashboard -> Plugins -> Add New
  2. Activate the plugin through the Plugins menu
  3. Head to Dashboard -> Settings -> Redirect 404 Settings to configure it
404 Error Pages are not being redirected

Did you activate the plugin? And enable the permalinks? Still doesn’t work? Sorry to hear that. Please head over to the support forum and open a new thread. We’ll help you out ASAP.

«Redirect 404 Error Page to Homepage or Custom Page with Logs» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники
1.7.6

Remove link

1.7.4
  • 2019/11/13
  • 5.3 update
  • settings update
1.7.4
  • 2019/07/04
  • Upgrade Freemius library to 2.3.0
1.7.3
  • 2019/04/03
  • Change to 404 option to ensure that 301 in not sent before 404
1.7.2
  • 2019/02/28
  • Minor improvement
1.7.1
  • 2019/02/25
  • Minor improvement
1.7
  • 2018/12/07
  • Minor tweak to admin to cater for 5.0 block editor
1.6
  • 2018/09/06
  • Added capturing template 404 redirects, where plugins like mailpoet handle redirsts directly to template.
1.4
  • 2018/09/01
  • Added logging capability
1.4
  • 2018/06/01
  • Changed to keep admin redirects e.g. admin / login etc
1.3
  • 2018/08/01
  • Transferred to Fullworks for future development
  • Changed permalink warning to admin notice
  • Made language translatable
  • Made pages selectable
  • Added reset to default to settings
  • Added freemius opt in
  • Added 404 redirect type for custom 404 pages
1.2
  • 2018/07/20
  • added 301/302 redirect type option
  • reworked readme.txt
1.01
  • 2018/05/09
  • WebFactory took over development
1.0
  • 2016/05/27
  • Initial release

Как в WordPress со страницы 404 перенаправить на главную?

Как мы уже писали в одном из наших прошлых материалов, ошибка 404 означает, что по тому или иному URL-адресу ничего нет, т.е. запрашиваемая страница сайта не существует. Технически эту ошибку выдает веб-сервер в ответ на ошибочный запрос. В принципе для любого сайта отсутствие какой-либо страницы является штатной ситуацией. Что касается WordPress, то обычно в темах даже присутствует отдельный шаблон с выводом страницы с этой ошибкой.

Зачем со страницы 404 перенаправлять на главную?

На веб-сайтах очень часто встречается прием, который выполняет перенаправление, например, на главную страницу, в случае возникновения ошибки 404. Важно отметить, что это не очень приветствуется поисковыми системами, так как возникают дубли ссылок. Именно во избежания подобной ситуации и существует ответ сервера с номером 404. Но все же если вы решили использовать такой прием для своего WordPress-сайта, то для этого есть все необходимые инструменты.

Как в WordPress со страницы 404 перенаправить на главную?

Для WordPress имеется несколько бесплатных плагинов, позволяющих корректно перенаправить поискового бота или пользователя со страницы ошибки 404 на какую-либо другу.

Плагины 404 редиректа

Redirection

Бесплатный плагин Redirection является одним из самых популярных решений для перенаправлений (или редиректов) на сайте WordPress. Он позволит быстро и легко управлять переадресацией, не требуя знаний Apache или Nginx. Если на вашем WordPress-сайте настроены постоянные ссылки, вы можете выполнить редирект любого URL-адреса.

Кроме того, плагин позволит создавать шаблоны перенаправлений для соответствия любому количеству URL-адресов.

Redirection также способен контролировать изменения постов или страниц и автоматически создавать для них перенаправление на новый URL-адрес.

Страница настроек плагина Redirection

Safe Redirect Manager

Safe Redirect Manager – еще один популярный плагин для создания редиректов на сайте WordPress. Дополнение имеет простой интерфейс, что позволяет легко создавать необходимые редиректы с настраиваемым типом кода состояния HTTP. Плагин отлично работает с мультисайтом.

Страница настроек плагина Safe Redirect Manager

All 404 Redirect to Homepage

Бесплатный плагин All 404 Redirect to Homepage несколько отличается от остальных плагинов подобного рода. Он автоматически устанавливает редирект 404 страницы на главную. Это очень удобно, так с любой несуществующей страницы произойдет перенаправление. В итоге пользователь даже не видит страницу 404 с сообщением об ошибке.

Страница настроек плагина All 404 Redirect to Homepage

Нажмите, пожалуйста, на одну из кнопок, чтобы узнать понравилась статья или нет.

Мне нравитсяНе нравится

Если Вам понравилась статья — поделитесь с друзьями

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *