{"id":61372,"date":"2024-02-13T07:21:24","date_gmt":"2024-02-13T12:21:24","guid":{"rendered":"https:\/\/memberpress.com\/docs\/unauthorized-redirect\/"},"modified":"2025-06-24T11:07:58","modified_gmt":"2025-06-24T15:07:58","slug":"unauthorized-redirect","status":"publish","type":"ht_kb","link":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/","title":{"rendered":"Usando o redirecionamento n\u00e3o autorizado"},"content":{"rendered":"\n<p>MemberPress' Unauthorized Redirect option gives you a way to redirect unauthorized users to a specified custom page when they try to access the protected content on your site.<\/p>\n\n\n\n<p>This allows you to provide additional information to your site visitors and combine the login form with pricing, special offers, and registration options on this custom page.<\/p>\n\n\n\n<p>Further, since MemberPress rules protect only the post content outputted through <strong>the_content()<\/strong> function. Some themes and plugins render their content outside of this function. In this case, that part of the content will remain unprotected. Hence, setting up the <strong>Unauthorized Redirect<\/strong> is a great solution to protect entire posts by redirecting users.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"set-up\"><a href=\"#set-up\" title=\"\">How To Set Up the Unauthorized Redirection<\/a><\/h2>\n\n\n\n<p>By default, on any protected post or page, unauthorized users will see the unauthorized message instead of the post content. If you enable the Unauthorized Redirect option, MemberPress will prevent unauthorized users from accessing the page and immediately redirect them to the page you specified.<\/p>\n\n\n\n<p>To enable the unauthorized redirection, please follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to <strong>Dashboard > MemberPress > Settings > Pages tab<\/strong>, and scroll down to the <strong>Unauthorized Access<\/strong> section;<\/li>\n\n\n\n<li>Check the <strong>Redirect unauthorized visitors to a specific URL<\/strong> checkbox to enable the unauthorized redirection;<\/li>\n\n\n\n<li>Copy the URL or slug of your custom page to which you would like to redirect the unauthorized users, and add that to the <strong>URL to direct unauthorized visitors to<\/strong> field;<\/li>\n\n\n\n<li>Click the <strong>Update Options<\/strong> button to save changes.<\/li>\n<\/ol>\n\n\n\n<p><a href=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-SnhT6kPY4R-1.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" style=\"width: 100%; max-width: 100%;\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-SnhT6kPY4R-1.png\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\"><strong>Note:<\/strong> If the page used as your redirection URL is located on your site, you can use either the URL or only the slug. On the other hand, if you are redirecting users to the URL on some other site, you would need to use the whole URL.<\/p>\n\n\n\n<p>Here, you will find some additional options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>Redirect methods: <\/b>by default, the template_redirect option will be selected here. If the MemberPress redirection doesn\u2019t work with your WordPress theme, you can try changing it to the \u201cinit\u201d option;<\/li>\n\n\n\n<li><b>Redirect non-singular views: <\/b>enabling this option should hide protected posts in a non-singular view on the blog page, category pages, archive pages, etc.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"><strong><strong>Note<\/strong>:<\/strong> The page to which unauthorized users get redirected shouldn\u2019t be protected by any MemberPress rules as this will create an indefinite loop and cause too many redirects error.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"1EHai5rnb\"><div class=\"responsive-video\"><iframe title=\"How to Redirect Unauthorized Visitors in MemberPress\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/7gSoxC3aFRY?feature=oembed&enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div><\/span>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"customizations\"><a href=\"#customizations\" title=\"\">Unauthorized Redirection Customizations<\/a><\/h2>\n\n\n\n<p>Next to the default options available out of the box, you can do additional customizations of this feature using custom code snippets. The following unauthorized redirection customizations are available:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Add Unauthorized Redirection Exclusions:<\/strong> Exclude specific posts or pages from unauthorized redirections based on their ID. Please check the <strong><a href=\"https:\/\/memberpress.com\/docs\/add-unauthorized-redirection-exclusions\/\">dedicated article<\/a><\/strong> for more details on how to apply this customization;<\/li>\n\n\n\n<li><strong>Add Rule-Specific Unauthorized Redirections:<\/strong> Set specific redirection URLs for each rule based on rule ID. This way, if the rule is dedicated to a specific membership, you can use this code snippet to create membership-specific redirections. Please check the <strong><a href=\"https:\/\/memberpress.com\/docs\/add-rule-specific-unauthorized-redirections\/\">dedicated article<\/a><\/strong> for more details on how to apply this customization;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"custom-page\"><a href=\"#custom-page\" title=\"\">Create a Custom Unauthorized Redirection Page<\/a><\/h3>\n\n\n\n<p>In addition, you can create the custom unauthorized redirection page and embed the MemberPress login form to it using the following shortcode: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code><strong>[mepr-login-form use_redirect=\"true\"]<\/strong><\/code><\/code><\/pre>\n\n\n\n<p>This option is especially useful if you want to have users redirected back to the protected post from which they got redirected after logging in. Please check the following article for more information on how to set that up: <a href=\"https:\/\/memberpress.com\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/\">How to display login form and stay on the same protected post\/page after login?<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"oQCdk0ZmuDt2gScWhNv8sRF6A4nbUL9POMrqGEzf\"><div class=\"responsive-video\"><iframe title=\"How to Use the Unauthorized Message Shortcode in MemberPress\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/PoHP_C9odgY?feature=oembed&enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div><\/span>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>MemberPress\u2019 Unauthorized Redirect option gives you a way to redirect unauthorized users to a specified custom page when they try to access the protected content on your site. This allows you to provide additional information to your site visitors and combine the login form with pricing, special offers, and registration options on this custom page. [\u2026]<\/p>\n","protected":false},"author":62252,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","_strive_checklists":"\"\"","_strive_active_checklist":"62291e2bb2422","footnotes":""},"ht-kb-category":[1340,1322],"ht-kb-tag":[],"class_list":{"0":"post-61372","1":"ht_kb","2":"type-ht_kb","3":"status-publish","4":"format-standard","6":"ht_kb_category-rules","7":"ht_kb_category-protecting-content","8":"entry","9":"has-post-thumbnail"},"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.5.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"MemberPress&#039; Unauthorized Redirect option gives you a way to redirect unauthorized users to a specified custom page when they try to access the protected content on your site. This allows you to provide additional information to your site visitors and combine the login form with pricing, special offers, and registration options on this custom page.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Nikola M\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.5.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"pt_BR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Using the Unauthorized Redirect | MemberPress\" \/>\n\t\t<meta property=\"og:description\" content=\"MemberPress&#039; Unauthorized Redirect option gives you a way to redirect unauthorized users to a specified custom page when they try to access the protected content on your site. This allows you to provide additional information to your site visitors and combine the login form with pricing, special offers, and registration options on this custom page.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1650\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1275\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-02-13T12:21:24+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-06-24T15:07:58+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/memberpress\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@memberpress\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Using the Unauthorized Redirect | MemberPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"MemberPress&#039; Unauthorized Redirect option gives you a way to redirect unauthorized users to a specified custom page when they try to access the protected content on your site. This allows you to provide additional information to your site visitors and combine the login form with pricing, special offers, and registration options on this custom page.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#article\",\"name\":\"Using the Unauthorized Redirect | MemberPress\",\"headline\":\"Using the Unauthorized Redirect\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/file-SnhT6kPY4R-1.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#articleImage\",\"width\":1904,\"height\":975},\"datePublished\":\"2024-02-13T07:21:24-05:00\",\"dateModified\":\"2025-06-24T11:07:58-04:00\",\"inLanguage\":\"pt-BR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#webpage\"},\"articleSection\":\"Rules and Redirections, Protecting Content\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"position\":2,\"name\":\"Advanced Topics\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"position\":3,\"name\":\"Custom Codes\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/custom-codes\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/rules\\\/#listItem\",\"position\":4,\"name\":\"Rules and Redirections\",\"item\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/rules\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#listItem\",\"name\":\"Using the Unauthorized Redirect\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#listItem\",\"position\":5,\"name\":\"Using the Unauthorized Redirect\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/\",\"name\":\"Using the Unauthorized Redirect | MemberPress\",\"description\":\"MemberPress' Unauthorized Redirect option gives you a way to redirect unauthorized users to a specified custom page when they try to access the protected content on your site. This allows you to provide additional information to your site visitors and combine the login form with pricing, special offers, and registration options on this custom page.\",\"inLanguage\":\"pt-BR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/docs\\\/unauthorized-redirect\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T07:21:24-05:00\",\"dateModified\":\"2025-06-24T11:07:58-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"pt-BR\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/pt\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Using the Unauthorized Redirect | MemberPress<\/title>\n\n","aioseo_head_json":{"title":"Usando o redirecionamento n\u00e3o autorizado | MemberPress","description":"A op\u00e7\u00e3o Unauthorized Redirect (Redirecionamento n\u00e3o autorizado) do MemberPress oferece uma maneira de redirecionar usu\u00e1rios n\u00e3o autorizados para uma p\u00e1gina personalizada especificada quando eles tentam acessar o conte\u00fado protegido em seu site. Isso permite que voc\u00ea forne\u00e7a informa\u00e7\u00f5es adicionais aos visitantes do site e combine o formul\u00e1rio de login com pre\u00e7os, ofertas especiais e op\u00e7\u00f5es de registro nessa p\u00e1gina personalizada.","canonical_url":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#article","name":"Using the Unauthorized Redirect | MemberPress","headline":"Using the Unauthorized Redirect","author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-SnhT6kPY4R-1.png","@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#articleImage","width":1904,"height":975},"datePublished":"2024-02-13T07:21:24-05:00","dateModified":"2025-06-24T11:07:58-04:00","inLanguage":"pt-BR","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#webpage"},"articleSection":"Rules and Redirections, Protecting Content"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/pt","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/#listItem","position":2,"name":"Advanced Topics","item":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/#listItem","position":3,"name":"Custom Codes","item":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/#listItem","position":4,"name":"Rules and Redirections","item":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#listItem","name":"Using the Unauthorized Redirect"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#listItem","position":5,"name":"Using the Unauthorized Redirect","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/pt\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/pt\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775745920"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#webpage","url":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/","name":"Using the Unauthorized Redirect | MemberPress","description":"MemberPress' Unauthorized Redirect option gives you a way to redirect unauthorized users to a specified custom page when they try to access the protected content on your site. This allows you to provide additional information to your site visitors and combine the login form with pricing, special offers, and registration options on this custom page.","inLanguage":"pt-BR","isPartOf":{"@id":"https:\/\/memberpress.com\/pt\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/pt\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T07:21:24-05:00","dateModified":"2025-06-24T11:07:58-04:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/pt\/#website","url":"https:\/\/memberpress.com\/pt\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"pt-BR","publisher":{"@id":"https:\/\/memberpress.com\/pt\/#organization"}}]},"og:locale":"pt_BR","og:site_name":"MemberPress","og:type":"article","og:title":"Using the Unauthorized Redirect | MemberPress","og:description":"MemberPress' Unauthorized Redirect option gives you a way to redirect unauthorized users to a specified custom page when they try to access the protected content on your site. This allows you to provide additional information to your site visitors and combine the login form with pricing, special offers, and registration options on this custom page.","og:url":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:width":1650,"og:image:height":1275,"article:published_time":"2024-02-13T12:21:24+00:00","article:modified_time":"2025-06-24T15:07:58+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"Using the Unauthorized Redirect | MemberPress","twitter:description":"MemberPress' Unauthorized Redirect option gives you a way to redirect unauthorized users to a specified custom page when they try to access the protected content on your site. This allows you to provide additional information to your site visitors and combine the login form with pricing, special offers, and registration options on this custom page.","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg"},"aioseo_meta_data":{"post_id":"61372","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2025-10-09 21:34:02","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":"0","open_ai":"{\"title\":{\"suggestions\":[],\"usage\":0},\"description\":{\"suggestions\":[],\"usage\":0}}","ai":null,"created":"2024-02-13 12:21:25","updated":"2026-03-03 14:53:49"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/\" title=\"Advanced Topics\">Advanced Topics<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/\" title=\"Custom Codes\">Custom Codes<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/\" title=\"Rules and Redirections\">Rules and Redirections<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tUsing the Unauthorized Redirect\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/pt"},{"label":"Advanced Topics","link":"https:\/\/memberpress.com\/pt\/doc-categories\/advanced-topics\/"},{"label":"Custom Codes","link":"https:\/\/memberpress.com\/pt\/doc-categories\/custom-codes\/"},{"label":"Rules and Redirections","link":"https:\/\/memberpress.com\/pt\/doc-categories\/rules\/"},{"label":"Using the Unauthorized Redirect","link":"https:\/\/memberpress.com\/pt\/docs\/unauthorized-redirect\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/61372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/comments?post=61372"}],"version-history":[{"count":1,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/61372\/revisions"}],"predecessor-version":[{"id":73731,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb\/61372\/revisions\/73731"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/media?parent=61372"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-category?post=61372"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/pt\/wp-json\/wp\/v2\/ht-kb-tag?post=61372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}