DEV Community

Cover image for From Custom Domain to Vercel Subdomain: How I Recovered My SEO Rankings
Md Imran Hossain
Md Imran Hossain

Posted on

From Custom Domain to Vercel Subdomain: How I Recovered My SEO Rankings

When my .me domain expired, I thought my SEO was doomed. Here's how I rebuilt my search presence on a Vercel subdomain and the lessons I learned.

Picture this:

Youโ€™ve spent months perfecting your portfolio. Your SEO is dialed in, and your custom domain imranparthib.me is ranking beautifully on Google. Things are looking great, right?

I got that domain thanks to the GitHub Student Developer Pack. You can grab a .me, .tech, or .live domain for free for one year โ€” pretty sweet deal, right?

Then... life happens. And just like that, my domain expired.
One minute I was cruising along, and the next โ€” my carefully built online presence vanished from search results.

I suddenly found myself with a new home:
imranparthib.vercel.app โ€” and zero SEO authority.

Vercel


๐Ÿคž The Naive Hope

My first thought?

โ€œIโ€™ll just update my metadata.js file, and Google will figure it out.โ€

// What I thought would work ๐Ÿค”
export const siteConfig = {
  name: "Imran Parthib",
  url: "https://imranparthib.vercel.app", // Just change this, right?
  // ...rest of config
};
Enter fullscreen mode Exit fullscreen mode

Spoiler alert: It wasnโ€™t as simple as I thought... ๐Ÿ˜…

Weeks went by, and my site was still nowhere to be found on Google.

After digging into it, hereโ€™s what I realized:
Google saw imranparthib.vercel.app as a completely new website.

That meant Google had to rediscover it, crawl it, and index it from scratch.

Why This Matters for Developers:

  • 1. Authority Reset: I lost all SEO history and trust signals.
  • 2. Subdomain Treatment: Google treats subdomains like separate sites, so my new Vercel subdomain started from scratch.
  • 3. Fresh Start: My site was like a brand new website with zero domain authority.

โœ… The Solution: Proper SEO Setup for Vercel Subdomains
Hereโ€™s what actually worked for me:

  1. Add Your Site to Google Search Console (The Right Way)
  • โœ… Use the URL Prefix method: https://yourname.vercel.app
  • โŒ Donโ€™t use the Domain Property method โ€” it doesnโ€™t work for .vercel.app subdomains.
  1. Verify Using an HTML Meta Tag I used my metadata.js to insert the verification tags:
export const defaultMetadata = {
  // ... other metadata
  verification: {
    google: "your-google-verification-code",
    bing: "your-bing-verification-code",
  },
};
Enter fullscreen mode Exit fullscreen mode
  1. Submit Sitemap.xml
  • In Google Search Console:

    • Go to Sitemaps
    • Enter sitemap.xml
    • Click Submit
  1. Manual Indexing for Key Pages Use the "URL Inspection" tool in GSC:
  • /
  • /about
  • /projects
  • /blog

Request indexing manually for each important page.

  1. Bonus: Bing Webmaster Tools ๐Ÿ’ก If youโ€™ve verified with Google Search Console, you can import directly into Bing โ€” no need for extra verification.

๐Ÿ“† Results Timeline
Hereโ€™s how things played out for me:

Time What Happened
โœ… Day 1 Verification successful
โœ… Day 2โ€“3 First crawling detected
โœ… Week 1โ€“2 Main pages indexed
โœ… Week 3โ€“4 Started ranking in Google again ๐ŸŽ‰

โœ… Vercel Subdomain SEO Checklist

You can copy and use this in your own project README:

  • Add site to Google Search Console (URL Prefix method)
  • Verify using HTML meta tag
  • Submit sitemap.xml
  • Request indexing for key pages
  • Import into Bing Webmaster Tools
  • Optimize metadata with relevant keywords
  • Monitor progress via Search Console
  • Publish quality content consistently

๐Ÿง  Final Thoughts
Losing my custom domain felt like a disaster, but it turned into a huge learning experience.

Sure, your domain might change โ€” but your online presence doesnโ€™t have to disappear if you follow the right steps.
Vercel subdomains can rank, but it requires patience and the proper setup.

๐Ÿ‘จโ€๐Ÿ’ป About Me
I'm Imran Parthib, a React & Next.js developer focused on building performant web applications.

๐ŸŒ Portfolio: imranparthib.vercel.app
๐Ÿ™ GitHub: Imran Parthib
๐Ÿ’ผ LinkedIn:Imran Parthib

Top comments (0)