Questions tagged [sitemap]

A sitemap serves as a convenient tool for website owners to notify search engines about the pages ready for indexing on their websites. Detailed guidelines on the sitemap protocol format can be found at http://www.sitemaps.org/protocol.html.

What could be causing the issue with my dynamic sitemap.xml file not functioning properly?

I have encountered an issue with creating a dynamic sitemap in my Next.js app. Despite following the instructions in the Next.js documentation and placing a sitemap.js file inside my app directory, I am seeing a 404 error when trying to access http://local ...

The function 'compilation.emitAsset' is not recognized by the sitemap-webpack-plugin

I'm currently working on setting up a sitemap for my live environment and I've encountered an issue while trying to utilize the sitemap-webpack-plugin. The error message I received is as follows: ERROR in TypeError: compilation.emitAsset is not a ...

Guide on mapping dynamic pages in Next13.3 for efficient sitemap creation

I am currently following the recommended method for generating a sitemap in Next13.3+ by using a sitemap.js file located in the app folder. Below is an example of the code I have implemented (please note that these are just placeholder URLs and should be r ...

Automatically generate sitemap with Node.js and Express for a seamless crawling experience

My website content is updated regularly, and I am looking for a solution to automatically generate a new sitemap every day. I attempted to utilize sitemap.js, but it requires manual entry of specific URLs from my site. I am curious if there exists a meth ...

Encountering a NextJS pre-render issue while generating the sitemap.xml

While developing my markdown-based blog, everything functioned smoothly in the developer environment. However, when I attempted to build the project using the command npm run build, I encountered an error related to pre-rendering failure. Error occurred pr ...

ERROR_UNSUPPORTED_ESM_URL_SCHEME - issue with next-sitemap plugin

I have a project utilizing next-sitemap with Node.js version v14.11.0. next-sitemap.config.js module.exports = { siteUrl: 'https://*****.com', generateRobotsTxt: true, robotsTxtOptions: { additionalSitemaps: [ 'https://*****.com/ ...

"Utilizing Ajax technology for website functionality while implementing effective SEO strategies

I've been facing an issue with my website not being indexed by Google for the past 5 weeks. The problem is not just with internal pages, but with the entire website itself. When searching for "xyz," my website "ww.xyz.com" is completely ignored by Google. ...

Excluding certain URLs from the PHP crawler's navigation

I'm currently working on a GenerateSitemap.php file for configuring the crawler, but I'm struggling to figure out how to make it skip specific URLs like https://example.com/noindex-url. I've tried reading up on it, but I can't seem to g ...

Create a dynamic sitemap for a Laravel website that includes variables in the slugs

My Laravel-based website features URLs like this- xyz.com/search/{id}/{name} These URLs have two variables, allowing for multiple variations such as: xyz.com/search/1/katy xyz.com/search/2/john With potentially thousands of such URLs, I need to creat ...

Guide on creating a sitemap using Express.js

I've been working with the sitemap.js package from While I can add URLs to the sitemap manually, my challenge lies in adding URLs based on data retrieved from MongoDB. Since fetching data from MongoDB is asynchronous and involves callbacks, by the time I ...

What is the best way to create a dynamic sitemap in Next.js version 14?

I've encountered an issue with the code snippet I'm using for a dynamic sitemap on my blog post website built with Next.js 14. While it works perfectly fine in development, it fails to generate a dynamic sitemap in the build or production environ ...

What is the process for incorporating a sitemap in Next.js without relying on npm packages?

After adding my sitemap to the Next.js pages folder in a new file named sitemap.xml, I encountered an issue when trying to access it using the URL http://localhost:3000/sitemap.xml. A 404 error page not found is displayed. I need to submit my sitemap URL t ...

Generating sitemaps for multiple languages in Next.js 14 has become more streamlined and efficient

My Next.js 14 website with multi-language support needs to generate a sitemap.xml that includes the following xhtml link tag: <xhtml:link rel="alternate" hreflang="YOUR_LOCALE" href="YOUR_LINK" /> I want it to display l ...

Guide for utilizing a sitemap in Firebase hosting for a React application

I recently launched a reactjs web application on firebase hosting. To ensure better indexing by search engines, I created a sitemap.xml file and placed it in the public folder. Then, I made changes to my firebase.json file to redirect the source to the sit ...

After the build process, Nextjs Sitemap is eliminating the /en/ from all newly generated web links

Utilizing Strapi to pull data in JSON format. For instance, a typical website link appears as follows: https:/ /www.some-site.com/some-link What happens to the links once the post build is completed on my Nextjs project: <url><loc>https://web ...