Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge Google Index Problem #2531

Closed
prinla opened this issue Jun 3, 2019 · 2 comments
Closed

Huge Google Index Problem #2531

prinla opened this issue Jun 3, 2019 · 2 comments

Comments

@prinla
Copy link

prinla commented Jun 3, 2019

I was desperately trying to find out why on every index request of google a lot of my websites gave an error (5xx) ?!?

Indeed the pages were shown correctly in any browser but nonetheless google could not read them correctly (indeed some web-sniffer neather)

By chance I found that the bot requested .txt.twig instead of .html.twig (still don't know why). And the chance was even bigger when I found that issue on git (#2337) where the solution seemed to be to adjust the files-array in the system-config.

Now I suppose this is not only happening to me (people check your webpages on google webmaster even if they are almost indexed - mine were but by chance I rechecked and was confronted to the problem)!!!

And maybe the Grav-Team could find us a real fix instead of having to change all the system configs of all my websites!!!

@rhukster if you need more details about the problem, just tell me, I will provide them.

inear

accesslog

@mahagr
Copy link
Member

mahagr commented Jun 26, 2019

Unfortunately, there is really no way to automatically change your site configuration once you have saved it from admin.

@rhukster Maybe we should force html to be the first in the list; after all, it is a web site.

@rhukster
Copy link
Member

I've decided to use a new function that will always ensure the list is ordered with html/htm first. I only found 2 occurences of this value being used, both within Grav core, so should be fine for future updates. Please test.

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

No branches or pull requests

3 participants