Shopware – robots.txt bearbeiten

So könnt Ihr in Shopware eure robots.txt bearbeiten:

vim themes/Frontend/Bare/frontend/robots_txt/index.tpl

{block name="frontend_robots_txt_user_agent"}
 User-agent: *
 {/block}

{block name="frontend_robots_txt_disallows"}
 Disallow: {url controller=compare fullPath=false}

Disallow: {url controller=checkout fullPath=false}

Disallow: {url controller=register fullPath=false}

Disallow: {url controller=account fullPath=false}

Disallow: {url controller=note fullPath=false}

Disallow: {url controller=widgets fullPath=false}

Disallow: {url controller=listing fullPath=false}

Disallow: {url controller=ticket fullPath=false}

Disallow: /impressum

{/block}

{block name="frontend_robots_txt_sitemap"}
 Sitemap: {url controller=index}sitemap.xml
 {/block}

{block name="frontend_robots_txt_sitemap_mobile"}
 {if {config name=mobileSitemap}}
 Sitemap: {url controller=index}sitemapMobile.xml
 {/if}
 {/block}

Danach den Cache reloaden.

Kommentar verfassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.