Hi, all
When i type Daniweb in google, it comes out really clearly site map in google. for example like:

DaniWeb IT Discussion Community - Software Programming / Web ...
Forums                            Web Development
Java Forum                       JavaScript
PHP
Software Development

I made the write the googlesitemap.xml file and upload it to both my server and the google webmaster. But it did not come to this way.

<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
	http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

    <url>
    <loc>http://www.foo.com/</loc>
    <lastmod>2009-01-01</lastmod>
    <changefreq>monthly</changefreq>
    </url>
    <url>
    <loc></loc>
    <lastmod>2009-01-01</lastmod>
    <changefreq>monthly</changefreq>
    </url>

So how i could make my website like this??
Many Thanks!

Dani AI

Generated

Short answer: Google builds those “site map” / sitelink blocks automatically, so there’s no guaranteed way to force the exact listing that DaniWeb gets — was right that sitelinks are chosen programmatically by Google’s systems. (developers.google.com)

An XML sitemap is still useful (it helps Google discover and index pages), but submitting one alone won’t produce sitelinks. The sitemap should list canonical, public URLs and be kept current; treat it as a discovery aid rather than a sitelink control. (This explains why the file you uploaded may not change the sitelink output.) (developers.google.com)

Practical ways to increase the chance Google picks sensible links:

  • Make a clear hierarchy and surface top sections from the homepage (main menu and footer links should reflect that structure).
  • Use unique, descriptive title tags and anchor text so Google can infer what each section is.
  • Implement breadcrumb structured data (BreadcrumbList) so Google understands the hierarchy. Example JSON‑LD (replace the names/URLs):
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"BreadcrumbList",
 "itemListElement":[
  {"@type":"ListItem","position":1,"name":"Forums","item":"https://example.com/forums"},
  {"@type":"ListItem","position":2,"name":"Web Development","item":"https://example.com/forums/web-development"}
 ]}
</script>

The breadcrumb pattern is documented by Google and is a direct signal for hierarchical navigation. (developers.google.com)

A final note on control and removals: the old “demote sitelinks” workflow is no longer a reliable control in Search Console, so unwanted pages must be removed from search (use proper noindex, return 404/410, or request temporary removal through Search Console) rather than relying on a demotion tool. Monitor internal linking and discovery via Search Console reports while iterating. (developers.google.com)

(References: Google Search Central on search appearance, sitemaps, breadcrumbs and Search Console removal guidance.)

Recommended Answers

All 3 Replies

You have no control over this, google assigns these if it feels that they are relevant. In your webmaters tools it explains this.

Hope that helps

A sitemap?I just know xml.com could creat it .

martynb, does that mean i couldn't do anything about it instead make my website code more clearly??
Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.