{"id":62797,"date":"2024-02-13T10:37:49","date_gmt":"2024-02-13T15:37:49","guid":{"rendered":"https:\/\/memberpress.com\/docs\/add-rule-specific-unauthorized-redirections\/"},"modified":"2025-05-20T10:03:58","modified_gmt":"2025-05-20T14:03:58","slug":"add-rule-specific-unauthorized-redirections","status":"publish","type":"ht_kb","link":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/","title":{"rendered":"Hinzuf\u00fcgen von MemberPress-Regel-spezifischen nicht autorisierten Umleitungen"},"content":{"rendered":"<p>MemberPress <span style=\"margin: 0px; padding: 0px;\">hat eine eingebaute\u00a0<a href=\"https:\/\/memberpress.com\/de\/docs\/unauthorized-redirect\/\" target=\"_blank\" rel=\"noopener\"><strong>unerlaubte Umleitung<\/strong><\/a>\u00a0Funktion, die automatisch eine Umleitung<\/span> jeder nicht autorisierte Benutzer auf die URL, die Sie in den MemberPress-Einstellungen angegeben haben. <\/p>\n\n\n\n<p>Wenn Sie mehrere Umleitungs-URLs verwenden m\u00f6chten, m\u00fcssen Sie ein benutzerdefiniertes Code-Snippet verwenden, da diese Option standardm\u00e4\u00dfig nicht verf\u00fcgbar ist. <\/p>\n\n\n\n<p>Dieses Dokument stellt Ihnen den benutzerdefinierten Code zur Verf\u00fcgung und erkl\u00e4rt, wie Sie ihn verwenden k\u00f6nnen, um verschiedene unautorisierte Umleitungs-URLs f\u00fcr bestimmte MemberPress-Regeln festzulegen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wie macht man das?<\/h2>\n\n\n\n<p>Durch Hinzuf\u00fcgen des Codeschnipsels aus diesem Dokument werden Ausnahmen von Ihren Einstellungen f\u00fcr nicht autorisierte Umleitungs-URLs erstellt. <\/p>\n\n\n\n<p>Jede regelbasierte Umleitung, die mit diesem Codeschnipsel festgelegt wird, erzeugt n\u00e4mlich einen Ausschluss von Ihrer globalen unautorisierten Umleitungs-URL. Diese globale Umleitungs-URL wird f\u00fcr alle Inhalte verwendet, die durch andere Regeln gesch\u00fctzt sind.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"><strong>Hinweis<\/strong>: Das Codeschnipsel funktioniert nur, wenn die globale Umleitung aktiviert ist und auf <strong>Dashboard &gt; Einstellungen &gt; MemberPress &gt; Registerkarte Seiten<\/strong>. Zu diesem Zweck sollten Sie <span style=\"margin: 0px; padding: 0px;\">erm\u00f6glichen die\u00a0<strong>Unbefugte Besucher auf eine bestimmte URL umleiten<\/strong>\u00a0Option<\/span>. Au\u00dferdem m\u00fcssen Sie die Umleitungs-URL in die Datei <strong>URL zur Weiterleitung nicht autorisierter Besucher<\/strong> Feld.<\/p>\n\n\n\n<p>Um einer Regel auf der Grundlage der Regel-ID eine Umleitungs-URL hinzuzuf\u00fcgen, m\u00fcssen Sie den folgenden Filtercode hinzuf\u00fcgen:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">\/\/ Hinzuf\u00fcgen einer nicht autorisierten Umleitung auf der Grundlage der MemberPress-Regel-ID<br><br>add_filter( 'mepr-rule-redirect-unauthorized-url', function ( $redirect_url, $delim, $uri ) {<br>    global $post;<br>    wenn ( $post ) {<br>        $rules = MeprRule::get_rules( $post );<br>        if ( !empty( $rules ) ) {<br>            $rule_ids = array_column($rules, 'ID');<br>            if ( in_array( 101, $rule_ids ) ) {<br>                $redirect_url = \"https:\/\/yourdomain.com\/register\/membership-1\/\";<br>            } else if ( in_array( 201, $rule_ids ) ) {<br>                $redirect_url = \"https:\/\/yourdomain.com\/register\/membership-2\/\";<br>            }<br>        }<br>    }<br>    return $redirect_url;<br>}, 999, 3 );<\/pre>\n\n\n\n<p>Der obige Code ist ein Beispiel, das an Ihre Bed\u00fcrfnisse angepasst werden sollte. Weiter unten wird erkl\u00e4rt, wie Sie den Code \u00e4ndern k\u00f6nnen.<\/p>\n\n\n\n<p>Nach der \u00c4nderung k\u00f6nnen Sie das Codeschnipsel auf Ihrer Website in der <strong>funktionen.php<\/strong> Datei Ihres Child-Themes. Als Alternative k\u00f6nnen Sie die <strong><a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\" target=\"_blank\" rel=\"noopener\" title=\"\">WPCode<\/a><\/strong> Plugin. Im folgenden Dokument finden Sie eine Schritt-f\u00fcr-Schritt-Anleitung f\u00fcr <strong><a href=\"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Hinzuf\u00fcgen von benutzerdefinierten Codefragmenten in WPCode<\/a><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"> <strong>Anmerkung:<\/strong> Dieses Codeschnipsel ist nicht mit den Regeln f\u00fcr benutzerdefinierte URIs kompatibel.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Umleitung f\u00fcr jede Regel festlegen<\/h3>\n\n\n\n<p>Damit dieser Code auf Ihrer Website funktioniert, m\u00fcssen Sie eine IF-Anweisung aus dem Beispielcode f\u00fcr jede ben\u00f6tigte Kundenumleitung hinzuf\u00fcgen.<\/p>\n\n\n\n<p>Zur Veranschaulichung: Die folgende IF-Anweisung leitet jeden nicht autorisierten Benutzer auf die <strong><code>https:\/\/yourdomain.com\/register\/membership-1\/<\/code><\/strong> URL, wenn sie versuchen, einen Inhalt zu besuchen, der durch die Regel mit der ID 101 gesch\u00fctzt ist:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">if ( in_array( 101, $rule_ids ) ) {\n\n$redirect_url = \"https:\/\/yourdomain.com\/register\/membership-1\/\";<\/pre>\n\n\n\n<p>Die n\u00e4chste IF-Anweisung im Beispielcode tut dasselbe f\u00fcr Inhalte, die durch die Regel mit der ID 201 gesch\u00fctzt sind, indem sie die Benutzer zu einer anderen URL umleitet (<strong><code>https:\/\/yourdomain.com\/register\/membership-2\/<\/code><\/strong>).<\/p>\n\n\n\n<p>Dementsprechend m\u00fcssen Sie diese IF-Anweisung kopieren und sie f\u00fcr jede Regel anpassen, f\u00fcr die Sie eine nicht-globale Umleitung ben\u00f6tigen. Innerhalb jeder IF-Anweisung m\u00fcssen Sie die folgenden Daten anpassen:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>Regel-ID<\/b>:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">wenn ( in_array( <u><b>101<\/b><\/u>, $rule_ids ) ) {<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>URL, zu der die Benutzer weitergeleitet werden<\/b>:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">$redirect_url = '<u><b>https:\/\/yourdomain.com\/register\/membership-1\/<\/b><\/u>';<\/pre>\n\n\n\n<p>Um die Regel-IDs zu finden, navigieren Sie bitte zu <strong>Dashboard &gt; MemberPress &gt; Regeln<\/strong>. Die ID jeder Regel finden Sie in der Spalte \u201cID\u201d. Die Umleitungs-URL kann eine beliebige URL Ihrer Website oder eine externe URL sein.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-60MwTe2mkJ.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\"> <strong>Anmerkung:<\/strong> Bitte beachten Sie, dass die IF-Anweisungen in der Reihenfolge ihrer Priorit\u00e4t aufgef\u00fchrt werden sollten. Die Umleitung, die Vorrang haben soll, muss zuerst aufgef\u00fchrt werden.<\/p>","protected":false},"excerpt":{"rendered":"<p>MemberPress has a built-in\u00a0unauthorized redirection\u00a0feature, which automatically redirects any unauthorized user to the URL you specified in MemberPress settings. If you need to use multiple redirection URLs, you will need to use a custom code snippet, as this option is not available by default. This document will provide you with the custom code and explain [\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-62797","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 has a built-in unauthorized redirection feature, which automatically redirects any unauthorized user to the URL you specified in MemberPress settings. If you need to use multiple redirection URLs, you will need to use a custom code snippet, as this option is not available by default. This document will provide you with the custom code and explain\" \/>\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\/de\/docs\/add-rule-specific-unauthorized-redirections\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.5.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\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=\"Add MemberPress Rule-Specific Unauthorized Redirections\" \/>\n\t\t<meta property=\"og:description\" content=\"MemberPress has a built-in unauthorized redirection feature, which automatically redirects any unauthorized user to the URL you specified in MemberPress settings. If you need to use multiple redirection URLs, you will need to use a custom code snippet, as this option is not available by default. This document will provide you with the custom code and explain\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/\" \/>\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-13T15:37:49+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-05-20T14:03: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=\"Add MemberPress Rule-Specific Unauthorized Redirections\" \/>\n\t\t<meta name=\"twitter:description\" content=\"MemberPress has a built-in unauthorized redirection feature, which automatically redirects any unauthorized user to the URL you specified in MemberPress settings. If you need to use multiple redirection URLs, you will need to use a custom code snippet, as this option is not available by default. This document will provide you with the custom code and explain\" \/>\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\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#article\",\"name\":\"Add MemberPress Rule-Specific Unauthorized Redirections\",\"headline\":\"Add MemberPress Rule-Specific Unauthorized Redirections\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/file-60MwTe2mkJ.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#articleImage\",\"width\":1904,\"height\":975},\"datePublished\":\"2024-02-13T10:37:49-05:00\",\"dateModified\":\"2025-05-20T10:03:58-04:00\",\"inLanguage\":\"de-DE\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#webpage\"},\"articleSection\":\"Rules and Redirections, Protecting Content\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"position\":2,\"name\":\"Advanced Topics\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"position\":3,\"name\":\"Custom Codes\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/custom-codes\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/rules\\\/#listItem\",\"position\":4,\"name\":\"Rules and Redirections\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/rules\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#listItem\",\"name\":\"Add MemberPress Rule-Specific Unauthorized Redirections\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#listItem\",\"position\":5,\"name\":\"Add MemberPress Rule-Specific Unauthorized Redirections\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#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\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1776350726\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/\",\"name\":\"Add MemberPress Rule-Specific Unauthorized Redirections\",\"description\":\"MemberPress has a built-in unauthorized redirection feature, which automatically redirects any unauthorized user to the URL you specified in MemberPress settings. If you need to use multiple redirection URLs, you will need to use a custom code snippet, as this option is not available by default. This document will provide you with the custom code and explain\",\"inLanguage\":\"de-DE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/add-rule-specific-unauthorized-redirections\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T10:37:49-05:00\",\"dateModified\":\"2025-05-20T10:03:58-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"de-DE\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Add MemberPress Rule-Specific Unauthorized Redirections<\/title>\n\n","aioseo_head_json":{"title":"Hinzuf\u00fcgen von MemberPress-Regel-spezifischen nicht autorisierten Umleitungen","description":"MemberPress verf\u00fcgt \u00fcber eine eingebaute Funktion zur Umleitung nicht autorisierter Benutzer, die automatisch jeden nicht autorisierten Benutzer zu der URL umleitet, die Sie in den MemberPress-Einstellungen angegeben haben. Wenn Sie mehrere Umleitungs-URLs verwenden m\u00f6chten, m\u00fcssen Sie ein benutzerdefiniertes Code-Snippet verwenden, da diese Option nicht standardm\u00e4\u00dfig verf\u00fcgbar ist. Dieses Dokument stellt Ihnen den benutzerdefinierten Code zur Verf\u00fcgung und erkl\u00e4rt","canonical_url":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#article","name":"Add MemberPress Rule-Specific Unauthorized Redirections","headline":"Add MemberPress Rule-Specific Unauthorized Redirections","author":{"@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/de\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-60MwTe2mkJ.png","@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#articleImage","width":1904,"height":975},"datePublished":"2024-02-13T10:37:49-05:00","dateModified":"2025-05-20T10:03:58-04:00","inLanguage":"de-DE","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#webpage"},"articleSection":"Rules and Redirections, Protecting Content"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/de","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/#listItem","position":2,"name":"Advanced Topics","item":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/#listItem","position":3,"name":"Custom Codes","item":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/#listItem","position":4,"name":"Rules and Redirections","item":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#listItem","name":"Add MemberPress Rule-Specific Unauthorized Redirections"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#listItem","position":5,"name":"Add MemberPress Rule-Specific Unauthorized Redirections","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/de\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/de\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#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\/de\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1776350726"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#webpage","url":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/","name":"Add MemberPress Rule-Specific Unauthorized Redirections","description":"MemberPress has a built-in unauthorized redirection feature, which automatically redirects any unauthorized user to the URL you specified in MemberPress settings. If you need to use multiple redirection URLs, you will need to use a custom code snippet, as this option is not available by default. This document will provide you with the custom code and explain","inLanguage":"de-DE","isPartOf":{"@id":"https:\/\/memberpress.com\/de\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T10:37:49-05:00","dateModified":"2025-05-20T10:03:58-04:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/de\/#website","url":"https:\/\/memberpress.com\/de\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"de-DE","publisher":{"@id":"https:\/\/memberpress.com\/de\/#organization"}}]},"og:locale":"de_DE","og:site_name":"MemberPress","og:type":"article","og:title":"Add MemberPress Rule-Specific Unauthorized Redirections","og:description":"MemberPress has a built-in unauthorized redirection feature, which automatically redirects any unauthorized user to the URL you specified in MemberPress settings. If you need to use multiple redirection URLs, you will need to use a custom code snippet, as this option is not available by default. This document will provide you with the custom code and explain","og:url":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/","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-13T15:37:49+00:00","article:modified_time":"2025-05-20T14:03:58+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"Add MemberPress Rule-Specific Unauthorized Redirections","twitter:description":"MemberPress has a built-in unauthorized redirection feature, which automatically redirects any unauthorized user to the URL you specified in MemberPress settings. If you need to use multiple redirection URLs, you will need to use a custom code snippet, as this option is not available by default. This document will provide you with the custom code and explain","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg"},"aioseo_meta_data":{"post_id":"62797","title":"#post_title","description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"Unauthorized Redirections","score":51,"analysis":{"keyphraseInTitle":{"score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"score":3,"maxScore":9,"error":1},"keyphraseLength":{"score":9,"maxScore":9,"error":0,"length":2},"keyphraseInURL":{"score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"score":3,"maxScore":9,"error":1},"keyphraseInSubHeadings":{"score":3,"maxScore":9,"error":1},"keyphraseInImageAlt":{"score":3,"maxScore":9,"error":1},"keywordDensity":{"score":0,"type":"low","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 22:10:17","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":"{\"title\":{\"suggestions\":[],\"usage\":0},\"description\":{\"suggestions\":[],\"usage\":0}}","ai":null,"created":"2024-02-13 15:37:49","updated":"2026-03-03 14:52:31"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/de\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/de\/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\/de\/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\/de\/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\tAdd MemberPress Rule-Specific Unauthorized Redirections\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/de"},{"label":"Advanced Topics","link":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/"},{"label":"Custom Codes","link":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/"},{"label":"Rules and Redirections","link":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/"},{"label":"Add MemberPress Rule-Specific Unauthorized Redirections","link":"https:\/\/memberpress.com\/de\/docs\/add-rule-specific-unauthorized-redirections\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb\/62797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/comments?post=62797"}],"version-history":[{"count":1,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb\/62797\/revisions"}],"predecessor-version":[{"id":72808,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb\/62797\/revisions\/72808"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/media?parent=62797"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb-category?post=62797"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=62797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}