sulu / SuluHeadlessBundle

Bundle that provides controllers and services for using Sulu as headless content management system
MIT License
45 stars 25 forks source link

Unpublished articles are still available on Google search results #141

Closed jeffasseur closed 2 months ago

jeffasseur commented 2 months ago

When we unpublish an article, we can still find the article when we search on it on Google. This seems not really correct.

alexander-schranz commented 2 months ago

@jeffasseur

PS: The redirects bundle support to create a 410 entry into the Redirect Table which throw then a HttpException with 410 Gone response. https://github.com/sulu/SuluRedirectBundle?tab=readme-ov-file#different-statuses

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410. If this is good or bad for google search bot SEO will have different answers. By default Sulu returns 404 for unpublished or not existing articles or pages.

The 410 feature only happens when a document got removed not unpublished.