how to create a xml sitemap for react website - sitemap

I have created a sitemap for my react website. I check website on SEO site checkup it is not showing any error in sitemap but in google search console it showing sitemap "could not fetch".
How do I create a sitemap for my react website.

Make sure your sitemap is saved in the Public folder of your react project.
You can use this react library called react-router-sitemap.
It uses your routes list to generate a sitemap within your public folder.

Related

How to fetch the sitemap.xml file which is created by strapi-plugin-sitemap on the frontend using NextJs by API?

I have created the sitemap using strapi-plugin-sitemap in Strapi. Its working fine in the Strapi side but I need to get it on the frontend.
Here is the package - https://www.npmjs.com/package/strapi-plugin-sitemap
Thanks in advance.
It locates the sitemap at /sitemap/index.xml relative to the Strapi root.
Do you really need a sitemap for your backend? There is an official plugin for documentation that adds an OpenAPI specification that you can also parse in your frontend;
https://www.npmjs.com/package/#strapi/plugin-documentation

How to insert image into strapi article?

I'm beginner of strapi, nodejs headless cms framework.
I've followed quick start guide of official document. I've created gatsby-blog and it works.
After setup, I've created new article with uploaded image, in the middle of article. (Not the image field in the Slug section) In the strapi admin page, I can find my new image in the media library list.
But when I open my strapi client in browser, the image is not shown. The source of image seems to the file path of backend server. I can find the image file on the backend/public/uploads folder. But it returns 404 error.
So, What am I missing of strapi setting? I've searched a lot but I can't find similar issue.
Make sure that the field is public in your Strapi admin dashboard.
Beyond that, it seems like the src tag in your screenshot has a relative url - if you are not hosting the backend on the same path as the frontend, I would suspect you have to prepend the backend base path :-)

SEO for Laravel Vue.js App

My Laravel 5.6 app has a Vue.js frontend. The Vue.js app is in the resources directory. I have gone through several articles that use Prerender SPA plugins. These articles are for the stand alone vue.js app and have an index.html file. In Laravel's case we have index.php. How do I make my Laravel Vue.js App SEO freindly. At a minimum I would like to make the front/home page of the app SEO friendly.
I think, as an alternative solution, you can use https://prerender.io/ service (up to 250 pages Free for caching) to do the pre-rendering for your SPA application.
If you are going to implement https://prerender.io/ service, you would require to generate all the sitemap URL paths and upload them to this service via their npm plugin (prerender-spa-plugin) and configure your .htaccess file for search engine crawlers. So search engine crawlers will redirect to this pre-render service and picked your website, cached static web page for service engine indexing, and show that cached page as the search result.
For more info, you can refer below;
https://prerender.io/documentation
https://snipcart.com/blog/vue-js-seo-prerender-example
Cheers!
Definitely recommend checking out Nuxt.js! It is a production-ready framework built on top of VueJS. With Nuxt.js You can create 100% SEO-friendly app with SPA-like routing.
Check this awesome Toptal article about "Creating Server-side Rendered Vue.js Apps Using Nuxt.js"

Cannot generate sitemap for a site?

I have been trying to generate a sitemap for my site, I have used several 3rd party tools but none of them were successful,They either give an error or doesn't generate a proper sitemap and just show a single line . Here is my site btw: https://www.mightyhealthy.com/
Have you tried with the below url
/catalog/seo_sitemap/category/
it is magento's default sitemap
The url for your store will be as mention below
https://www.mightyhealthy.com/catalog/seo_sitemap/category/

how to create sitemap.xml file in joomla website?

First I created sitemap.xml file for my website and upload this file into the domain root folder of my site and Second I verified my website on webmaster of Google.
But sitemap is not showing on my website. Please give me reason for this.
Sitemap couldn't be displayed from xml file.
You need to install a component to help you create it. A very good one is: Xmap

Resources