Safe Redirect Manager


Gerencie de forma fácil e segura os redirecionamentos do seu site, do jeito do WordPress. Existem muitos plugins de redirecionamento disponíveis. A maioria deles armazena os redirecionamentos na tabela de opções ou em tabelas personalizadas. A maioria deles oferece dezenas de opções desnecessárias. Alguns deles têm sérios problemas de desempenho, como registro de todos os erros 404. O Safe Redirect Manager armazena seus redirecionamentos como um tipo de post personalizado. Isso facilita a exportação e importação de seus dados e torna seu site escalável. O Safe Redirect Manager é desenvolvido para lidar com níveis empresariais de tráfego e é usado em grandes sites de notícias. O plugin vem só com o que você precisa, seguindo o mantra do WordPress, “decisões, não opções”. Ações e filtros tornam o plugin muito extensível.

Crie um fork do plugin no GitHub.


Não existem configurações complexas para este plugin. Para gerenciar redirecionamentos, navegue até o painel administrativo (“Ferramentas” > “Safe Redirect Manager”).

Cada redirecionamento contém alguns poucos campos que você pode usar:

“Redirecionar de”

This should be a path relative to the root of your WordPress installation. When someone visits your site with a path that matches this one, a redirect will occur. If your site is located at and you wanted to redirect to, your “Redirect From” would be /about.

Clicking the “Enable Regex” checkbox allows you to use regular expressions in your path. There are many great tutorials on regular expressions.

You can also use wildcards in your “Redirect From” paths. By adding an * at the end of a URL, your redirect will match any request that starts with your “Redirect From”. Wildcards support replacements. This means if you have a wildcard in your from path that matches a string, you can have that string replace a wildcard character in your “Redirect To” path. For example, if your “Redirect From” is /test/*, your “Redirect To” is*, and the requested path is /test/string, the user would be redirect to

“Redirecionar para”

This should be a path (i.e. /test) or a URL (i.e. If a requested path matches “Redirect From”, they will be redirected here. “Redirect To” supports wildcard and regular expression replacements.

“Código de status HTTP”

HTTP status codes are numbers that contain information about a request (i.e. whether it was successful, unauthorized, not found, etc). You should almost always use either 302 (temporarily moved) or 301 (permanently moved).


  • Redirects are cached using the Transients API. Cache busts occur when redirects are added, updated, and deleted so you shouldn’t be serving stale redirects.
  • By default the plugin only allows at most 1000 redirects to prevent performance issues. There is a filter srm_max_redirects that you can utilize to up this number.
  • Por padrão, “Redirecionar de” e caminhos solicitados não diferenciam maiúsculas e minúsculas.
  • Developers can use srm_additional_status_codes filter to add status codes if needed.


Install the plugin in WordPress. You can download a zip via GitHub and upload it using the WordPress plugin uploader (“Plugins” > “Add New” > “Upload Plugin”).


9 agosto, 2020 1 resposta
There are lots of redirect plugins available but this is the only one that I recommend and have it installed on all of my sites. Simple to use and, well, it just works - you can't ask for anything more.
16 abril, 2020 1 resposta
After trying several other redirection plugins this one finally works. The others did nothing.
Leia todas as 73 avaliações

Colaboradores e desenvolvedores

“Safe Redirect Manager” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.


“Safe Redirect Manager” foi traduzido para 7 localizações. Agradecemos aos tradutores por suas contribuições.

Traduzir “Safe Redirect Manager” para o seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, dê uma olhada no repositório SVN ou assine o registro de desenvolvimento via RSS.

Registro de alterações

1.11.1 – 2022-09-26

1.11.0 – 2022-06-27

1.10.1 – 2021-12-16

1.10.0 – 2020-12-03

1.9.3 – 2019-11-20

  • Changed: Allow for escaped values on _redirect_rule_from, useful when importing regex (props @raymondware).
  • Changed: Check current_user_can cap later to prevent the notice being thrown during Jetpack sitemap cron event runs (props @rebeccahum).
  • Changed: Updated tests and documentation (props @adamsilverstein, @jeffpaul, @helen).
  • Changed: Check correct meta field when updating notes (props @lucymtc, @adamsilverstein).
  • Changed: Bump WordPress version “tested up to” 5.3 (props @jeffpaul).
  • Fixed: Update the logic for wildcard matching to properly match URLs with query parameters (props @adamsilverstein, @mslinnea.
  • Security: Bump lodash from 4.17.11 to 4.17.15 (props @dependabot).

1.9.2 – 2018-11-27

  • Fix CLI list function name for PHP 5

1.9.1 – 2018-11-26

  • Fix SQL injection bug opened up by SQL search functionality.

1.9 – 2018-04-03

  • Add redirect notes feature.
  • Fix PHP 7.2 errors
  • Instantiate classes in main file instead of individual files for improved testability.
  • Add filters for request path and redirect path
  • Add filter to only apply redirects on 404

1.8 – 2017-12-08

  • Improved escaping
  • Custom redirect capability
  • Code refactor
  • Fix root redirect in sub directory bug
  • Fix broken html

1.7.8 – 2015-12-16

  • Fix SQL injection bug and no search terms warning

1.7.7 – 2015-06-18

  • Make default redirect status filterable
  • Add composer.json
  • Fix delete capability on redirect post type

1.7.6 – 2015-02-13

  • Use home_url() instead of site_url(). Props swalkinshaw
  • Don’t redirect if redirect to location is invalid. Props vaurdan
  • Redirection plugin importer. Props eugene-manuilov

1.7.5 – 2014-09-09

  • Don’t always lowercase matched parts in redirect to replace. Propsfrancescolaffi
  • Plugin icon/banner

1.7.4 – 2014-09-05

  • Fix case sensitivity redirection bug.
  • Add more unit tests

1.7.3 – 2014-08-26

  • Check if the global $wp_query is null before using get_query_var. Props cmmarslender
  • Unit tests
  • Making _x translatable text work. Props lucspe

1.7.2 – 2014-02-10

  • Added French translation. Props jcbrebion.
  • Bug fix: Don’t perform redirects in the admin. Props joshbetz.
  • Bug fix: Prevent duplicate GUIDs. Props danblaker.

1.7.1 – 2013-12-12

  • Add 307 redirect status code. Thanks lgedeon
  • Plugin textdomain should be loaded on init
  • Add status code labels to creation dropdown. Thanks Chancey Mathews

1.7 – 2013-04-06

  • Return redirect_from on get_permalink. Thanks simonwheatley
  • Allow for regex replacement in from/to redirects
  • Add Slovak translation. Thanks Branco Radenovich
  • Notice fixed in filter_admin_title

1.6 – 2012-12-11

  • Bulk delete redirects from the Manage Redirects screen
  • wp-cli coverage including subcommands for creating, deleting, and listing redirects, and importing .htaccess files

1.5 – 2012-11-07

  • Regular expressions allowed in redirects
  • New filter ‘srm_registered_redirects’ allows you to conditionally unset redirects based on context, user permissions, etc. Thanks jtsternberg for the pull request.

1.4.2 – 2012-10-17

  • Disable redirect loop checking by default. You can filter srm_check_for_possible_redirect_loops to enable it.
  • Only return published redirects in update_redirect_cache. – bug fix

1.4.1 – 2012-10-11

  • Refresh cache after create_redirect call – bug fix
  • Refresh cache after save_post is called – bug fix
  • Chop off “pre-WP” path from requested path. This allows the plugin to work on WP installations in sub-directories – bug fix

1.4 – 2012-10-09

  • Use the ‘*’ wildcard at the end of your match value to configure a wildcard redirect. Use the same symbol at the end of your redirect to value in order to have the matched value be appended to the end of the redirect. Thanks prettyboymp for the pull request
  • Change default request-matching behavior to be case-insensitive. This can be modified using the ‘srm_case_insensitive_redirects’ filter.
  • Include an informational ‘X-Safe-Redirect-Manager’ header when a redirect occurs. Thanks simonwheatley for the pull request

1.3 – 2012-09-19

  • safe-redirect-manager.php – Globalize SRM class for use in themes/plugins/scripts. Added create_redirect method to make importing easier.

1.2 – 2012-09-01

  • safe-redirect-manager.php – manage_options capability required to use redirect manager, remove checkbox column, hide view switcher, fix search feature, hide privacy stuff for bulk edit

1.1 – 2012-08-28

  • safe-redirect-manager.php – plugin_url() used properly, is_plugin_page function

1.0 – 2012-08-27

  • Plugin released