I created a Nextjs 15 project and deployed with Vercel. I added my custom domain. When I try to add my page to google search console it shows a redirected page error. “The page was not added to the directory: Redirect error”.
Says directing page is “http://mydomain.com/user.php?login=” but my app does not have a page like this. When I visit the link, it brings a 403 page of Vercel with an ID.
Why does my project have this kind of a page? My other NextJS projects have this user.php issue too.
If you have a Nextjs hosted app try routing to user.php. Probably you will see it too.
Thanks for providing in depth context. Let me clarify by saying this isn’t an issue: neither with Next.js, Vercel, or the Google console.
The URLs that you see in the Google Console are what bots acting like users have been going to. These URLs may not exist but a lot of the bots/web crawlers have these fixed so they will regularly visit these URLs. There’s no downside to this. It’s harmless.
If you want, you can configure the Metadata Files: robots.txt | Next.js to exclude bots/crawlers from visiting these pages. But these are merely prescriptions and crawlers who ignore standards may still continue to make these requests.