{"id":947,"date":"2025-12-01T17:10:34","date_gmt":"2025-12-01T17:10:34","guid":{"rendered":"https:\/\/netguide.io\/?p=947"},"modified":"2025-12-01T17:10:34","modified_gmt":"2025-12-01T17:10:34","slug":"wordpress-multisite-im-root-verzeichnis-und-unabhangige-wordpress-installation-im-unterverzeichnis-wie-man-beide-gleichzeitig-betreibt","status":"publish","type":"post","link":"https:\/\/netguide.io\/linux\/de\/wordpress-multisite-im-root-verzeichnis-und-unabhangige-wordpress-installation-im-unterverzeichnis-wie-man-beide-gleichzeitig-betreibt\/","title":{"rendered":"WordPress Multisite im Root-Verzeichnis und Unabh\u00e4ngige WordPress-Installation im Unterverzeichnis: Wie man beide gleichzeitig betreibt"},"content":{"rendered":"\n<p>Die Kombination einer\u00a0<strong>WordPress Multisite<\/strong>\u00a0im Root-Verzeichnis und einer unabh\u00e4ngigen\u00a0<strong>WordPress-Installation<\/strong>\u00a0im Unterverzeichnis ist eine interessante und oft gew\u00fcnschte Konfiguration f\u00fcr Nutzer, die verschiedene Websites unter einer Domain betreiben wollen. Diese Konfiguration erm\u00f6glicht es, eine zentrale Multisite-Installation f\u00fcr mehrere Subseiten zu haben, w\u00e4hrend gleichzeitig eine separate WordPress-Installation f\u00fcr eine spezifische Seite im Unterverzeichnis betrieben wird.<\/p>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-3b846fa8      \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tInhaltsverzeichnis\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#warum-kann-ich-nicht-auf-meine-wordpress-seite-im-unterverzeichnis-zugreifen-wenn-eine-multisite-im-root-verzeichnis-installiert-ist\" class=\"uagb-toc-link__trigger\">Warum kann ich nicht auf meine WordPress-Seite im Unterverzeichnis zugreifen, wenn eine Multisite im Root-Verzeichnis installiert ist?<\/a><li class=\"uagb-toc__list\"><a href=\"#wie-kann-ich-das-problem-beheben-und-meine-wordpress-seite-im-unterverzeichnis-weiterhin-zug\u00e4nglich-machen\" class=\"uagb-toc-link__trigger\">Wie kann ich das Problem beheben und meine WordPress-Seite im Unterverzeichnis weiterhin zug\u00e4nglich machen?<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#schritt-1-sicherstellen-dass-die-wordpress-installation-im-unterverzeichnis-korrekt-konfiguriert-ist\" class=\"uagb-toc-link__trigger\">Schritt 1: Sicherstellen, dass die WordPress-Installation im Unterverzeichnis korrekt konfiguriert ist<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#schritt-2-anpassung-der-htaccess-datei-im-root-verzeichnis\" class=\"uagb-toc-link__trigger\">Schritt 2: Anpassung der .htaccess-Datei im Root-Verzeichnis<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#schritt-3-testen-und-\u00fcberpr\u00fcfen\" class=\"uagb-toc-link__trigger\">Schritt 3: Testen und \u00dcberpr\u00fcfen<\/a><\/li><\/ul><\/li><li class=\"uagb-toc__list\"><a href=\"#fazit\" class=\"uagb-toc-link__trigger\">Fazit<\/a><\/ul><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<p><\/p>\n\n\n\n<p>Doch wie oft bei WordPress-Konfigurationen, st\u00f6\u00dft man dabei auf einige Herausforderungen \u2013 insbesondere bei der Erreichbarkeit der bereits existierenden WordPress-Seite im Unterverzeichnis, wenn eine Multisite im Root-Verzeichnis installiert wird. In diesem Artikel erkl\u00e4ren wir, warum dieses Problem auftritt und wie man es mithilfe einer Anpassung der <code>.htaccess<\/code>-Datei beheben kann.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"warum-kann-ich-nicht-auf-meine-word-press-seite-im-unterverzeichnis-zugreifen-wenn-eine-multisite-im-root-verzeichnis-installiert-ist\">Warum kann ich nicht auf meine WordPress-Seite im Unterverzeichnis zugreifen, wenn eine Multisite im Root-Verzeichnis installiert ist?<\/h3>\n\n\n\n<p>Wenn du eine neue <strong>WordPress Multisite<\/strong> im Root-Verzeichnis deiner Domain installierst, \u00fcberschreibt WordPress einige grundlegende URL- und Rewrite-Regeln, die den Zugriff auf Unterverzeichnisse beeinflussen k\u00f6nnen. Multisite-Netzwerke setzen eine Reihe von speziellen Rewrite-Regeln in der <code>.htaccess<\/code>-Datei und der <code>wp-config.php<\/code>-Datei um, um die Verwaltung von Subdomains oder Unterverzeichnissen f\u00fcr die Netzwerk-Seiten zu erm\u00f6glichen.<\/p>\n\n\n\n<p>Wenn du jedoch bereits eine unabh\u00e4ngige WordPress-Installation in einem Unterverzeichnis (z.B. <code>meineseite.de\/unterverzeichnis\/<\/code>) betreibst, kann die URL-Struktur, die f\u00fcr das Netzwerk von Multisite verwendet wird, dazu f\u00fchren, dass die Rewrite-Regeln der Multisite auch auf dein Unterverzeichnis angewendet werden, was dazu f\u00fchrt, dass du nicht mehr auf die existierende WordPress-Seite zugreifen kannst. Dies liegt daran, dass das WordPress-Netzwerk automatisch versucht, alle Anfragen zu verarbeiten, einschlie\u00dflich derjenigen f\u00fcr das Unterverzeichnis, was zu einer \u201eFehlermeldung\u201c oder einer Umleitung f\u00fchrt.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wie-kann-ich-das-problem-beheben-und-meine-word-press-seite-im-unterverzeichnis-weiterhin-zuganglich-machen\">Wie kann ich das Problem beheben und meine WordPress-Seite im Unterverzeichnis weiterhin zug\u00e4nglich machen?<\/h3>\n\n\n\n<p>Das Problem l\u00e4sst sich durch eine gezielte Anpassung der <code>.htaccess<\/code>-Datei beheben. Die <code>.htaccess<\/code>-Datei enth\u00e4lt Regeln, die steuern, wie der Webserver (Apache) URLs umleitet und welche Seiten geladen werden. Um sicherzustellen, dass die Multisite im Root-Verzeichnis funktioniert, ohne die WordPress-Installation im Unterverzeichnis zu beeintr\u00e4chtigen, kannst du die folgenden Schritte befolgen.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"schritt-1-sicherstellen-dass-die-word-press-installation-im-unterverzeichnis-korrekt-konfiguriert-ist\">Schritt 1: Sicherstellen, dass die WordPress-Installation im Unterverzeichnis korrekt konfiguriert ist<\/h4>\n\n\n\n<p>Zun\u00e4chst solltest du sicherstellen, dass deine bestehende WordPress-Installation im Unterverzeichnis korrekt konfiguriert ist. Du kannst dies \u00fcberpr\u00fcfen, indem du die folgenden Konfigurationsdateien in deiner Unterverzeichnis-Installation anpasst:<\/p>\n\n\n\n<p><strong>wp-config.php<\/strong> \u2013 In der <code>wp-config.php<\/code>-Datei sollte der Wert f\u00fcr <code>WP_SITEURL<\/code> und <code>WP_HOME<\/code> den korrekten Pfad zur Installation im Unterverzeichnis enthalten: <\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>define('WP_SITEURL', 'https:\/\/meineseite.de\/unterverzeichnis'); \ndefine('WP_HOME', 'https:\/\/meineseite.de\/unterverzeichnis');<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #79B8FF\">define<\/span><span style=\"color: #E1E4E8\">(<\/span><span style=\"color: #9ECBFF\">&#039;WP_SITEURL&#039;<\/span><span style=\"color: #E1E4E8\">, <\/span><span style=\"color: #9ECBFF\">&#039;https:\/\/meineseite.de\/unterverzeichnis&#039;<\/span><span style=\"color: #E1E4E8\">); <\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">define<\/span><span style=\"color: #E1E4E8\">(<\/span><span style=\"color: #9ECBFF\">&#039;WP_HOME&#039;<\/span><span style=\"color: #E1E4E8\">, <\/span><span style=\"color: #9ECBFF\">&#039;https:\/\/meineseite.de\/unterverzeichnis&#039;<\/span><span style=\"color: #E1E4E8\">);<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"schritt-2-anpassung-der-htaccess-datei-im-root-verzeichnis\">Schritt 2: Anpassung der .htaccess-Datei im Root-Verzeichnis<\/h4>\n\n\n\n<p>Nun musst du die <code>.htaccess<\/code>-Datei im Root-Verzeichnis anpassen, um sicherzustellen, dass die Anfragen f\u00fcr das Unterverzeichnis weiterhin korrekt verarbeitet werden. \u00d6ffne die <code>.htaccess<\/code>-Datei im Root-Verzeichnis und stelle sicher, dass sie folgende Regeln enth\u00e4lt:<\/p>\n\n\n\n<p><strong>Multisite Rewrite-Regeln:<\/strong> Die Standard-WordPress-Multisite-Rewrite-Regeln f\u00fcr das Root-Verzeichnis m\u00fcssen an erster Stelle stehen. Diese Regeln sorgen daf\u00fcr, dass WordPress das Netzwerk korrekt verarbeitet. <\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly># BEGIN WordPress\nRewriteEngine On\nRewriteBase \/\nRewriteRule ^index\\.php$ - &#091;L&#093;\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/index.php &#091;L&#093;\n# END WordPress<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #6A737D\"># BEGIN WordPress<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteEngine<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">On<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteBase<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">^<\/span><span style=\"color: #79B8FF\">index<\/span><span style=\"color: #E1E4E8\">\\<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #79B8FF\">php<\/span><span style=\"color: #E1E4E8\">$ <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteCond<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">%<\/span><span style=\"color: #E1E4E8\">{<\/span><span style=\"color: #79B8FF\">REQUEST_FILENAME<\/span><span style=\"color: #E1E4E8\">} <\/span><span style=\"color: #F97583\">!-<\/span><span style=\"color: #79B8FF\">f<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteCond<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">%<\/span><span style=\"color: #E1E4E8\">{<\/span><span style=\"color: #79B8FF\">REQUEST_FILENAME<\/span><span style=\"color: #E1E4E8\">} <\/span><span style=\"color: #F97583\">!-<\/span><span style=\"color: #79B8FF\">d<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #79B8FF\">index<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #79B8FF\">php<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A737D\"># END WordPress<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Spezielle Regeln f\u00fcr das Unterverzeichnis:<\/strong> Du musst eine Ausnahme f\u00fcr das Unterverzeichnis einrichten, damit der Webserver nicht versucht, alle Anfragen auch f\u00fcr die Seite im Unterverzeichnis umzuleiten. Du kannst dies erreichen, indem du spezifische Rewrite-Regeln f\u00fcr das Unterverzeichnis hinzuf\u00fcgst, bevor die allgemeinen Multisite-Regeln geladen werden.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly># Ausnahme f\u00fcr das Unterverzeichnis\nRewriteCond %{REQUEST_URI} ^\/unterverzeichnis\/\nRewriteRule ^(.*)$ \/unterverzeichnis\/$1 &#091;L&#093;<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #6A737D\"># Ausnahme f\u00fcr das Unterverzeichnis<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteCond<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">%<\/span><span style=\"color: #E1E4E8\">{<\/span><span style=\"color: #79B8FF\">REQUEST_URI<\/span><span style=\"color: #E1E4E8\">} <\/span><span style=\"color: #F97583\">^\/<\/span><span style=\"color: #79B8FF\">unterverzeichnis<\/span><span style=\"color: #F97583\">\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">^<\/span><span style=\"color: #E1E4E8\">(<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #F97583\">*<\/span><span style=\"color: #E1E4E8\">)$ <\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #79B8FF\">unterverzeichnis<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">$<\/span><span style=\"color: #79B8FF\">1<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>So sieht das ganze dann aus:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly># BEGIN WordPress\n# The directives (lines) between \"BEGIN WordPress\" and \"END WordPress\" are\n# dynamically generated, and should only be modified via WordPress filters.\n# Any changes to the directives between these markers will be overwritten.\n&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\nRewriteRule .* - &#091;E=HTTP_AUTHORIZATION:%{HTTP:Authorization}&#093;\nRewriteBase \/\nRewriteRule ^index\\.php$ - &#091;L&#093;\n\n# Stelle sicher, dass \/blog und \/t nicht von der Multisite beeinflusst werden\nRewriteCond %{REQUEST_URI} ^\/blog(\/.*)?$ &#091;NC&#093;\nRewriteRule ^ - &#091;L&#093;\n\nRewriteCond %{REQUEST_URI} ^\/t(\/.*)?$ &#091;NC&#093;\nRewriteRule ^ - &#091;L&#093;\n\n# add a trailing slash to \/wp-admin\nRewriteRule ^(&#091;_0-9a-zA-Z-&#093;+\/)?wp-admin$ $1wp-admin\/ &#091;R=301,L&#093;\n\nRewriteCond %{REQUEST_FILENAME} -f &#091;OR&#093;\nRewriteCond %{REQUEST_FILENAME} -d\nRewriteRule ^ - &#091;L&#093;\nRewriteRule ^(&#091;_0-9a-zA-Z-&#093;+\/)?(wp-(content|admin|includes).*) $2 &#091;L&#093;\nRewriteRule ^(&#091;_0-9a-zA-Z-&#093;+\/)?(.*\\.php)$ $2 &#091;L&#093;\nRewriteRule . index.php &#091;L&#093;\n\n&lt;\/IfModule&gt;\n\n# END WordPress<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #6A737D\"># BEGIN WordPress<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A737D\"># The directives (lines) between &quot;BEGIN WordPress&quot; and &quot;END WordPress&quot; are<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A737D\"># dynamically generated, and should only be modified via WordPress filters.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A737D\"># Any changes to the directives between these markers will be overwritten.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F97583\">&lt;<\/span><span style=\"color: #79B8FF\">IfModule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">mod_rewrite<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #79B8FF\">c<\/span><span style=\"color: #F97583\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteEngine<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">On<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #F97583\">*<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">E<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #79B8FF\">HTTP_AUTHORIZATION<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #F97583\">%<\/span><span style=\"color: #E1E4E8\">{<\/span><span style=\"color: #79B8FF\">HTTP<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #79B8FF\">Authorization<\/span><span style=\"color: #E1E4E8\">}&#093;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteBase<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">^<\/span><span style=\"color: #79B8FF\">index<\/span><span style=\"color: #E1E4E8\">\\<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #79B8FF\">php<\/span><span style=\"color: #E1E4E8\">$ <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A737D\"># Stelle sicher, dass \/blog und \/t nicht von der Multisite beeinflusst werden<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteCond<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">%<\/span><span style=\"color: #E1E4E8\">{<\/span><span style=\"color: #79B8FF\">REQUEST_URI<\/span><span style=\"color: #E1E4E8\">} <\/span><span style=\"color: #F97583\">^\/<\/span><span style=\"color: #B392F0\">blog<\/span><span style=\"color: #E1E4E8\">(<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #F97583\">*<\/span><span style=\"color: #E1E4E8\">)<\/span><span style=\"color: #F97583\">?<\/span><span style=\"color: #E1E4E8\">$ &#091;<\/span><span style=\"color: #79B8FF\">NC<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">^<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteCond<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">%<\/span><span style=\"color: #E1E4E8\">{<\/span><span style=\"color: #79B8FF\">REQUEST_URI<\/span><span style=\"color: #E1E4E8\">} <\/span><span style=\"color: #F97583\">^\/<\/span><span style=\"color: #B392F0\">t<\/span><span style=\"color: #E1E4E8\">(<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #F97583\">*<\/span><span style=\"color: #E1E4E8\">)<\/span><span style=\"color: #F97583\">?<\/span><span style=\"color: #E1E4E8\">$ &#091;<\/span><span style=\"color: #79B8FF\">NC<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">^<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A737D\"># add a trailing slash to \/wp-admin<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">^<\/span><span style=\"color: #E1E4E8\">(&#091;<\/span><span style=\"color: #79B8FF\">_0<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">9a<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">zA<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">Z<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><span style=\"color: #F97583\">+\/<\/span><span style=\"color: #E1E4E8\">)<\/span><span style=\"color: #F97583\">?<\/span><span style=\"color: #79B8FF\">wp<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">admin<\/span><span style=\"color: #E1E4E8\">$ $<\/span><span style=\"color: #79B8FF\">1wp<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">admin<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">R<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #79B8FF\">301<\/span><span style=\"color: #E1E4E8\">,<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteCond<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">%<\/span><span style=\"color: #E1E4E8\">{<\/span><span style=\"color: #79B8FF\">REQUEST_FILENAME<\/span><span style=\"color: #E1E4E8\">} <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">f<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #F97583\">OR<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteCond<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">%<\/span><span style=\"color: #E1E4E8\">{<\/span><span style=\"color: #79B8FF\">REQUEST_FILENAME<\/span><span style=\"color: #E1E4E8\">} <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">d<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">^<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">^<\/span><span style=\"color: #E1E4E8\">(&#091;<\/span><span style=\"color: #79B8FF\">_0<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">9a<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">zA<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">Z<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><span style=\"color: #F97583\">+\/<\/span><span style=\"color: #E1E4E8\">)<\/span><span style=\"color: #F97583\">?<\/span><span style=\"color: #E1E4E8\">(<\/span><span style=\"color: #79B8FF\">wp<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">(<\/span><span style=\"color: #79B8FF\">content<\/span><span style=\"color: #F97583\">|<\/span><span style=\"color: #79B8FF\">admin<\/span><span style=\"color: #F97583\">|<\/span><span style=\"color: #79B8FF\">includes<\/span><span style=\"color: #E1E4E8\">)<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #F97583\">*<\/span><span style=\"color: #E1E4E8\">) $<\/span><span style=\"color: #79B8FF\">2<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">^<\/span><span style=\"color: #E1E4E8\">(&#091;<\/span><span style=\"color: #79B8FF\">_0<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">9a<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">zA<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">Z<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><span style=\"color: #F97583\">+\/<\/span><span style=\"color: #E1E4E8\">)<\/span><span style=\"color: #F97583\">?<\/span><span style=\"color: #E1E4E8\">(<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #F97583\">*<\/span><span style=\"color: #E1E4E8\">\\<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #79B8FF\">php<\/span><span style=\"color: #E1E4E8\">)$ $<\/span><span style=\"color: #79B8FF\">2<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">index<\/span><span style=\"color: #F97583\">.<\/span><span style=\"color: #79B8FF\">php<\/span><span style=\"color: #E1E4E8\"> &#091;<\/span><span style=\"color: #79B8FF\">L<\/span><span style=\"color: #E1E4E8\">&#093;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F97583\">&lt;\/<\/span><span style=\"color: #79B8FF\">IfModule<\/span><span style=\"color: #F97583\">&gt;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A737D\"># END WordPress<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"schritt-3-testen-und-uberprufen\">Schritt 3: Testen und \u00dcberpr\u00fcfen<\/h4>\n\n\n\n<p>Nachdem du die <code>.htaccess<\/code>-Datei angepasst hast, solltest du die \u00c4nderungen testen:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Zugriff auf das Root-Verzeichnis<\/strong>: \u00dcberpr\u00fcfe, ob die WordPress Multisite im Root-Verzeichnis ordnungsgem\u00e4\u00df funktioniert und du auf das Netzwerk zugreifen kannst.<\/li>\n\n\n\n<li><strong>Zugriff auf das Unterverzeichnis<\/strong>: Teste, ob du weiterhin auf die bestehende WordPress-Seite im Unterverzeichnis zugreifen kannst, ohne dass du auf eine Umleitungsseite oder Fehlerseite weitergeleitet wirst.<\/li>\n<\/ol>\n\n\n\n<p>Falls alles richtig konfiguriert ist, solltest du nun beide WordPress-Installationen parallel betreiben k\u00f6nnen, ohne dass sie sich gegenseitig st\u00f6ren.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"fazit\">Fazit<\/h3>\n\n\n\n<p>Die Kombination einer WordPress Multisite im Root-Verzeichnis und einer unabh\u00e4ngigen WordPress-Installation im Unterverzeichnis ist eine leistungsstarke M\u00f6glichkeit, mehrere Websites unter einer Domain zu verwalten. Allerdings erfordert diese Konfiguration einige Anpassungen an der <code>.htaccess<\/code>-Datei, um sicherzustellen, dass beide Installationen reibungslos zusammenarbeiten. Mit den richtigen Rewrite-Regeln kannst du das Problem des Zugriffsverlustes auf deine WordPress-Seite im Unterverzeichnis beheben und sowohl die Multisite als auch die separate WordPress-Seite im Unterverzeichnis erfolgreich betreiben.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Die Kombination einer\u00a0WordPress Multisite\u00a0im Root-Verzeichnis und einer unabh\u00e4ngigen\u00a0WordPress-Installation\u00a0im Unterverzeichnis ist eine interessante und oft gew\u00fcnschte Konfiguration f\u00fcr Nutzer, die verschiedene [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":949,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[403],"tags":[],"class_list":["post-947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"uagb_featured_image_src":{"full":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/12\/wordpress.png",1920,1080,false],"thumbnail":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/12\/wordpress-150x150.png",150,150,true],"medium":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/12\/wordpress-300x169.png",300,169,true],"medium_large":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/12\/wordpress-768x432.png",768,432,true],"large":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/12\/wordpress-1024x576.png",1024,576,true],"1536x1536":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/12\/wordpress-1536x864.png",1536,864,true],"2048x2048":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/12\/wordpress.png",1920,1080,false]},"uagb_author_info":{"display_name":"tobias.pries","author_link":"https:\/\/netguide.io\/linux\/author\/tobias-pries\/"},"uagb_comment_info":0,"uagb_excerpt":"Die Kombination einer\u00a0WordPress Multisite\u00a0im Root-Verzeichnis und einer unabh\u00e4ngigen\u00a0WordPress-Installation\u00a0im Unterverzeichnis ist eine interessante und oft gew\u00fcnschte Konfiguration f\u00fcr Nutzer, die verschiedene [&hellip;]","_links":{"self":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/comments?post=947"}],"version-history":[{"count":0,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/947\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/media\/949"}],"wp:attachment":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/media?parent=947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/categories?post=947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/tags?post=947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}