SEO: host-aware sitemap.xml + dynamische robots.txt je Domain
Sitemap pro Host (1h-Cache): Hub listet Landing + Rechts-/Info-Seiten, Spokes zusaetzlich Kategorien (lokalisierte Slugs), oeffentliche Newsrooms und alle im Archiv sichtbaren PMs des Portals (explizit ohne PortalScope, forPortalValues). Suche und Marketing-Platzhalterseiten bleiben draussen. Statische public/robots.txt entfernt (haette die Route verschattet); robots.txt jetzt dynamisch mit Sitemap-Verweis und Disallow fuer /admin, /login, /register, Suche. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
b855cbf7c0
commit
e9643e620a
5 changed files with 251 additions and 2 deletions
11
resources/views/web/sitemap.blade.php
Normal file
11
resources/views/web/sitemap.blade.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{!! '<?xml version="1.0" encoding="UTF-8"?>' !!}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
@foreach ($urls as $url)
|
||||
<url>
|
||||
<loc>{{ $url['loc'] }}</loc>
|
||||
@if (! empty($url['lastmod']))
|
||||
<lastmod>{{ $url['lastmod'] }}</lastmod>
|
||||
@endif
|
||||
</url>
|
||||
@endforeach
|
||||
</urlset>
|
||||
Loading…
Add table
Add a link
Reference in a new issue