SEO
7 min readAppClust Team

Technical SEO for a Next.js Business Website

Technical SEO on a Next.js business site is a short list. Declare the canonical URL, publish a sitemap of pages you want indexed, tell robots.txt where that sitemap is, and keep one H1 on each page. Speed scores and lab screenshots are a separate job.

AppClust Team, Product team. The AppClust team publishes practical guides on no-code business apps, integrations, and implementation. AppClust is based in Dubai Silicon Oasis, UAE.

The technical SEO decisions that matter on a Next.js business site: canonicals, the sitemap, robots rules, and which location URLs should not be indexed.

Share this article:
Technical SEO for a Next.js Business Website - Featured image

Technical SEO on a Next.js business site is a short list. Declare the canonical URL, publish a sitemap of pages you want indexed, tell robots.txt where that sitemap is, and keep one H1 on each page. Speed scores and lab screenshots are a separate job. This note does not invent them.

The examples below are from this website's source, so you can open the same files. The commercial page for a rebuild onto this stack is the website redesign and Next.js migration. The wider setup is SEO for a business website.

What the framework does, and what you still write

Next.js can render a page on the server and attach metadata in the same route. It does not decide which host is canonical, which country URL is a duplicate, or which app should be hidden. Those are entries in your metadata, your sitemap, and your robots file. A new marketing site still needs a person to make that list.

On AppClust's plans, Starter includes a basic Next.js website, Professional includes an advanced Next.js web app, and Enterprise includes a premium Next.js web app. The level changes the product. It does not change the checklist below.

Canonicals, including a location page

A canonical tag tells search engines which URL is the one to keep when several URLs show the same offer. Blog posts on this site set alternates.canonical to https://www.appclust.com/blogs/ and the post slug. The blog index canonical stays https://www.appclust.com/blogs even if a category query is present.

Location pages need the same discipline. The Dubai page at https://www.appclust.com/website-development/dubai sets its canonical to itself. Country-swap pages, including India, canonical to https://www.appclust.com/website-development and are noindex. The old UAE path redirects to the Dubai page. If you add a city page, either give it local proof and its own canonical, or point the canonical at the page you want indexed and keep the city URL out of the sitemap. Do not link a noindex country URL from an article.

The bare domain is handled separately. Host appclust.com redirects permanently to https://www.appclust.com, including paths. One host should remain after that redirect. Check it with a request, not with a slide.

The sitemap

app/sitemap.ts builds the sitemap from lists in the repo: static marketing paths, solution pages, case studies, every post in the blog data file, and location slugs that are allowed to be indexed. A new blog post is included because it is in that data file, not because someone uploads an XML file by hand. lastModified for a post uses the updated date when one exists, otherwise the publish date.

Leave drafts, admin, and one-off tool results out of that list. If a page is noindex, it should not also be advertised in the sitemap.

Robots.txt

app/robots.ts allows /, disallows /api/, /admin/, and /invoice/, and sets the sitemap to https://www.appclust.com/sitemap.xml. Disallow is for places that should not be crawled. It is not a substitute for a noindex tag on a public URL you might still link. Use both when a tool must stay on the public internet but should not be an indexed landing page.

Headings, images, and the article schema

Each blog post renders the title as the only H1. Sections in the body need markdown headings if you want them in the table of contents. Bold lines are not headings. The page emits Article schema, a breadcrumb list, and an FAQ block when the post has questions. FAQ answers are visible on the page. Do not mark up questions the reader cannot see.

The hero image is required in the post data. Give it a specific alt. A body image is optional. This article does not include a screenshot of an admin panel, because those screens are not in this marketing repo and should not be invented.

One indexable URL, and one that should not compete

Take two real addresses. https://www.appclust.com/blogs/technical-seo-nextjs is a page you want indexed. Its canonical is itself. https://www.appclust.com/website-development/dubai is the Dubai page, and its canonical is itself. https://www.appclust.com/website-development is the general service page, and its canonical is itself. A country-swap URL should not collect the indexing signals for either of them.

India is the stricter case. That route canonicals to the general website development page and is noindex. A writer who pastes that path into a new post creates an internal link to a page the site has asked not to be indexed. Use the Dubai page when the subject is the Dubai office, or /website-development for the general service.

What to check in the template after a post ships

Open the new URL and confirm one H1, the title tag you stored, and the meta description you stored. Confirm the canonical is the www host and the slug you chose. Confirm the sitemap entry exists after deploy, because the sitemap is generated from the blog list. Click two body links and one footer link to a product page. If the table of contents is on the page, click a heading and confirm the browser lands on that heading. A contents list that points at the wrong id is a defect in the template, not a reason to remove the headings.

Then leave the post. Changing the title every few days to chase a different phrase makes the canonical URL look unfinished. Update the date when a fact changes, which is what the updated field is for. The sitemap uses that field as lastModified.

Metadata the route should set

A public route should set a title, a description, and a canonical. Open Graph can reuse the same title and description and a real image. Do not invent a social image size in the article if you have not measured the file. This blog declares a hero image from the post. The article schema uses the publish date and the updated date. Breadcrumb schema lists Home, the blog, and the post. Those are the fields worth checking in view source after a release.

Query parameters are a common leak. A category filter or a scan URL can create many addresses for one piece of content. Keep the canonical on the clean URL. If the parameter page is a tool result, noindex it, which is what the website analyzer does when a url query is present. The same idea applies to a business site that generates a page per filter on a catalog. Index the category you wrote. Do not index every combination of filters unless each combination is a page you would maintain.

Write the rule down next to the sitemap function. A new route is not finished when it renders. It is finished when the canonical, the index decision, and the sitemap entry agree.

What this page will not claim

No Core Web Vitals number, no 'top 10' label, and no price. A lab result belongs in a report from a real URL, such as one you run in the website analyzer. The migration checklist covers the redirect map for a rebuild. Next.js and WordPress is the choice of stack, not the crawl setup.

If you are moving an existing site onto the Next.js plan, contact the team with the current URL and a list of the paths that already receive customers. The first deliverable is the canonical host and the redirect map, not a bundle of articles.

AT

AppClust Team

Expert developers and business consultants helping companies transform their digital presence.

Related Articles

SEO for a Business Website: The Setup Before You Publish
SEO
8 min read
AppClust Team

SEO for a Business Website: The Setup Before You Publish

What has to exist on a business website before a blog can help: one host, titles, a sitemap, and a page that says who you are and where you work.
SEO for a Business Website: The Setup Before You Publish
A Website Migration Checklist for a Business Site
SEO
7 min read
AppClust Team

A Website Migration Checklist for a Business Site

What to finish before you move a business website: the URL map, a content freeze, permanent redirects, and the checks in the week after launch.
A Website Migration Checklist for a Business Site
Next.js vs WordPress for a Business Website
SEO
7 min read
AppClust Team

Next.js vs WordPress for a Business Website

How to choose between Next.js and WordPress for a business site: who edits pages, where the records live, and when a migration is a separate project.
Next.js vs WordPress for a Business Website

Frequently Asked Questions

Common questions related to this topic

Still have questions? Contact our team for personalized assistance.

Need Help Implementing These Ideas?

Our team of experts can help you implement these strategies and build custom solutions for your business. Get a free consultation today.

Free Assessment
Get a detailed analysis of your business needs
Expert Team
Work with certified professionals
Custom Solutions
Tailored to your specific requirements
Ongoing Support
24/7 assistance and maintenance