Next.js Discord

Discord Forum

Redirect Issue with Google Search Console

Unanswered
Entlebucher Mountain Dog posted this in #help-forum
Open in Discord
Entlebucher Mountain DogOP
Hello everyone,
I have a website built with Next.js 14 and hosted on Vercel.
I'm experiencing a redirection issue with Google Search Console.
I've tried several ways to fix the issue, but it still persists. I added the redirection in next.config.js and also checked the redirect from www to non-www on Vercel, but it didn't help.
...
async redirects() {
    return [
      {
        source: '/:path*',
        has: [{ type: 'header', key: 'host', value: 'www.vernonweehong.com' }],
        destination: 'https://vernonweehong.com/:path*',
        permanent: true,
      },
    ];
  },
...

I would appreciate any advice on fixing this issue, i tried to run curl -I <domain_name> it seems working fine with the redirection
- http://vernonweehong.com
- https://vernonweehong.com
- https://www.vernonweehong.com

except, http://www.vernonweehong.com

1 Reply

Entlebucher Mountain DogOP
Bump.