简体   繁体   中英

How do i create an xml sitemap for my website when the entire site is generated in 1 file, index php

So my site has 1 file in it. index.php it generates new pages based on request variables. For example: let's say i have 3 categories:

  • 1.People 2.Cars 3.Food

When site loads index.php?CategoryID=1 Page displays people. ... and so on.

Any program I've tried it generates a sitemap with 1 page: index.php

My question is this:

index.php?CategoryID=1 is one page?
index.php?CategoryID=2 is one page?
index.php?CategoryID=3 is one page?

or all 3 are one single page and my site cannot be splited in different pages?

Thank you all in advance.

Sitemaps are useful when there are many pages and when these pages are not necessarily linked by links. For one page it is not necessary

In other words sitemaps are usefule -

  1. When your users cant navigate to where they want to go
  2. When you don't know how to link to your best content.

Did you try http://create-site-map.com ? I had the same scenario with my website and I use them to generate it. You can see my website sitemap here: http://thousandwordscards.com/sitemap.xml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM