diff --git a/next.config.mjs b/next.config.mjs index 6ef1a95..239bc71 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -84,12 +84,12 @@ const nextConfig = { }, { source: '/wp-login.php', - destination: '/login', + destination: '/client-login', permanent: true, }, { source: '/wp-login.php/:path*', - destination: '/login', + destination: '/client-login', permanent: true, }, // Catch-all for any other wp-admin sub-paths @@ -112,18 +112,18 @@ const nextConfig = { }, { source: '/avbeat/wp-login.php', - destination: '/login', + destination: '/client-login', permanent: true, }, { source: '/avbeat/wp-login.php/:path*', - destination: '/login', + destination: '/client-login', permanent: true, }, - // Login aliases + // Login alias — /login redirects to canonical /client-login { source: '/login', - destination: '/login', + destination: '/client-login', permanent: false, }, ];