Skip to content

Instantly share code, notes, and snippets.

@ctala
Last active March 13, 2023 15:34
Show Gist options
  • Save ctala/fffbb23be035809d85e995e4a4c68027 to your computer and use it in GitHub Desktop.
Save ctala/fffbb23be035809d85e995e4a4c68027 to your computer and use it in GitHub Desktop.
Wordpress SEO optimized
#Este robots.txt está optimizado para el SEO del sitio wordpress.
User-agent: *
#Bloqueos de Wordpress
Disallow: /wp-admin/
Disallow: /cgi-bin
Disallow: /wp-content/plugins/
Disallow: /wp-content/themes/
Disallow: /wp-includes/
Disallow: /wp-login.php #block access to admin section
Disallow: /search/ #block access to internal search result pages
Disallow: *?s=* #block access to internal search result pages
Disallow: *?p=* #block access to pages for which permalinks fails
Disallow: *&p=* #block access to pages for which permalinks fails
#todas las páginas por tag ya están dentro de categorías. No es necesario revisarlas nuevamente
Disallow: /tag/ #block access to tag pages
#Bloquear las URLs de compartir (jetpack)
Disallow: /*?share=
#Bloquear URLs innecesarias para el rastreador
Disallow: /contacto
Disallow: /my-account
Disallow: /logout
Disallow: /lost-password
Disallow: /newsletter
#Sitemap de Yoast por defecto
Sitemap: https://cristiantala.cl/sitemap_index.xml
Sitemap: https://cristiantala.cl/news-sitemap.xml
@ctala
Copy link
Author

ctala commented Mar 13, 2023

Fixed the share link for jetpack

@ctala
Copy link
Author

ctala commented Mar 13, 2023

Agregados los patrones para search y permalinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment