"HTTP-Umleitung" - Der Prozess, bei dem eine Anforderung für eine URL automatisch durch eine Anforderung für eine andere, normalerweise verwandte URL ersetzt wird.
Szenario: Wenn sich der Benutzer nicht anmeldet, leitet er um, um die Anmeldeseite anzupassen, und leitet nach der Anmeldung erneut zur Zielseite um. Ich benutze keine Funktion oder Plugin. Dieser Code zur Einschränkungsseite: if (!is_user_logged_in()){ wp_redirect( get_option('home') . '?redirect_to=' . esc_url($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]) ); } erfolgreich zur Benutzeranmeldung, aber auf …
We use cookies and other tracking technologies to improve your browsing experience on our website,
to show you personalized content and targeted ads, to analyze our website traffic,
and to understand where our visitors are coming from.
By continuing, you consent to our use of cookies and other tracking technologies and
affirm you're at least 16 years old or have consent from a parent or guardian.