AutoIndex is Deprecated since October 2024 Due to changes in Google Indexing API, Autoindex is shutting down. Thank you for your support!
In this blog post we will look into how to automate Google indexing for your Next.js website using AutoIndex. First, we will cover the steps you need to take in order to setup sitemaps and prepare your NextJS site and then we’ll show how you can connect them to AutoIndex and start improving your Google search visibility.
Enhance the visibility of your Next.js website on Google by implementing automatic indexing for every page. This is essential for websites like blogs, portfolios, e-commerce stores, and business sites that aim to appear in pertinent search results. AutoIndex provides a straightforward and efficient method to ensure all pages are indexed quickly and checks regularly for new content. By letting AutoIndex manage the indexing, you can dedicate more time to crafting engaging content for your visitors.
We can break up everything you need to do in just 4 steps: adding sitemaps, connecting you website to Google Search Console is you didn’t already and importing your website to AutoIndex. Let’s look into all these steps one-by-one.
To begin, ensure your Next.js site generates an XML sitemap. The next-sitemap
package simplifies this process:
next-sitemap
package:yarn add next-sitemap
or
npm install next-sitemap
or
pnpm add next-sitemap
next-sitemap.config.js
in your project root:/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.SITE_URL || "https://example.com",
generateRobotsTxt: true, // (optional)
// ...other options
};
package.json
file:{
"build": "next build",
"postbuild": "next-sitemap"
}
Now you can deploy the new version of your website. After deploying, your sitemap will be accessible at https://example.com/sitemap.xml
.
This is a straightforward process, but you might need to verify your website ownership if you haven’t already:
Add Property
button and enter your website URL.Sitemaps
section and entering the URL of your sitemap.Once your website is verified in Google Search Console and your sitemap is submitted, you can connect your website to AutoIndex. To do that, follow these steps:
With auto indexing activated, AutoIndex will regularly check your sitemap daily for unindexed pages and initiate the indexing process. You’ll receive email notifications whenever new pages are successfully indexed.
By following these steps and leveraging AutoIndex, you can ensure your Next.js website’s pages are swiftly indexed by Google, increasing visibility and driving relevant traffic to your site.
SEO takes time to pay off. The earlier you notify Google about all your new pages - the faster you see results. Start today!