Smart Custom 404 Error Page

Por NerdPress
(1.185 avaliações)
Baixar
  • Versão:
    11.4.8
  • Última atualização:
    há 2 meses
  • Instalações ativas:
    mais de 100 mil
  • Versão do WordPress:
    4.0 ou maior
  • Testado até o WordPress:
    6.6.2
  • Versão do PHP:
    5.4 ou maior
  • Tags:

Hospedagem WordPress com plugin Smart Custom 404 error page 404page

Onde posso hospedar o plugin Smart Custom 404 error page 404page?

Este plugin pode ser hospedado em qualquer hospedagem que possua WordPress configurado. Recomendamos utilizar uma hospedagem de confiança, com servidores adaptados para WordPress, como o serviço de hospedagem WordPress da MCO2.

Hospedando o plugin Smart Custom 404 error page 404page em um provedor confiável

A MCO2, além de instalar o WordPress na versão mais atual para seus clientes, disponibiliza o plugin WP SafePress, um sistema singular que assegura e aumenta a performance do seu site simultaneamente.

Por que a Hospedagem WordPress funciona melhor na MCO2?

A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização de imagens, proteção da página de login, bloqueio de atividades maliciosas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São recursos que potencializam seu WordPress para a máxima segurança e o máximo desempenho.

Bringing visitors to your website takes time and effort. Every visitor is important. The default 404 error page of most themes does not provide any information on what to find on your site. A first-time 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 them 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.

Out of Retirement!

NerdPress has adopted Smart Custom 404 Page! Read the announcement here.

We’ve been fans of this plugin for many years, and we’re grateful for Peter’s many years of service to the community. Peter retired from plugin development in October 2023, so we’ve jumped in to help ensure this plugin continues to work well now and in the future.

Usage

Create your custom 404 error page just like any other page using the WordPress Editor (Pages > Add New). 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?

Unlike 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.

Additionally, 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.

Block & Shortcode

Block

The Plugin offers a block “URL causing 404 error” for the block-based editor to show the URL that caused the error. The block offers three display options:

  • “Page” to show the page including path ( e.g. does/not/exist )
  • “Domain Path” to show the URL without protocol and parameters ( e.g. example.com/does/not/exist )
  • “Full” to show the complete URL ( e.g. https://example.com/does/not/exist?p=1 )

Shortcode

The Plugin offers a shortcode “pp_404_url” for the classic editor to show the URL that caused the error. There are three possible options:

  • [pp_404_url page] to show the page including path ( e.g. does/not/exist )
  • [pp_404_url domainpath] to show the URL without protocol and parameters ( e.g. example.com/does/not/exist )
  • [pp_404_url] or [pp_404_url full] to show the complete URL ( e.g. https://example.com/does/not/exist?p=1 )

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

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
  • pp_404_get_the_url( $type ) to get the URL that caused the 404 error
    • Parameter $type string Optional
    • “page” to get the page including path ( e.g. does/not/exist )
    • “domainpath” to get the URL without protocol and parameters ( e.g. example.com/does/not/exist )
    • “full” (default) to get the complete URL ( e.g. https://example.com/does/not/exist?p=1 )

Native Mode

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

Plugins semelhantes

Redirecionamento
(657 avaliações)

Gerencie redirecionamentos 301, monitore erros 404 e melhore seu site, sem precisar entender de Apache ou Nginx.

Post Type Switcher
(234 avaliações)

Um jeito simples de mudar o tipo de um post no WordPress

Page Links To
(149 avaliações)

Lets you make a WordPress page (or port or other content type) link to a URL of your choosing (on your site, or on another site), instead of its norma …

Simple Page Ordering
(132 avaliações)

Order your pages and other custom post types that support "page-attributes" with simple drag and drop right from the standard page list.

404 to 301 – Redirect, Log and Notify 404 Errors
(294 avaliações)

Automatically redirect, log and notify all 404 page errors to any page using 301 redirect for SEO. No more 404 Errors in WebMaster tool.

Display Posts – Easy lists, grids, navigation, and more
(162 avaliações)

Add a listing of content on your website using a simple shortcode. Filter the results by category, author, and more.

Do mesmo author (NerdPress)

Optimize Database after Deleting Revisions
(179 avaliações)

One-click database optimization with precise revision cleanup and flexible scheduling. Speeding up sites since 2011!