From daf228fd44af2906837c4c343aae47f55685a6a1 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Tue, 30 May 2023 10:29:23 +0200 Subject: [PATCH] move permanently --- includes/rest/class-users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/rest/class-users.php b/includes/rest/class-users.php index 8c0452d..66637b7 100644 --- a/includes/rest/class-users.php +++ b/includes/rest/class-users.php @@ -58,7 +58,7 @@ class Users { // redirect to canonical URL if it is not an ActivityPub request if ( ! is_activitypub_request() ) { - header( 'Location: ' . $user->get_canonical_url() ); + header( 'Location: ' . $user->get_canonical_url(), true, 301 ); exit; }