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

English Canonical URL vs. Redirect Target mismatch #44

Closed
openmindculture opened this issue Sep 13, 2023 · 8 comments
Closed

English Canonical URL vs. Redirect Target mismatch #44

openmindculture opened this issue Sep 13, 2023 · 8 comments
Assignees
Labels
bug Something isn't working PHP ready

Comments

@openmindculture
Copy link
Owner

New reason preventing your pages from being indexed.

Search Console has identified that some pages on your site are not being indexed due to the following new reason:

Page with redirect

If this reason is not intentional, we recommend that you fix it in order to get affected pages indexed and appearing on Google.

@openmindculture openmindculture added the bug Something isn't working label Sep 13, 2023
@openmindculture openmindculture self-assigned this Sep 13, 2023
@openmindculture
Copy link
Owner Author

Front Page DE / ok

Front Page EN
https://kleiderordnung.berlin/en ->
301
X-Redirect-By: WordPress
Location: https://kleiderordnung.berlin/en/homepage/

<link rel="canonical" href="https://kleiderordnung.berlin/">

Beides falsch und stimmt noch nicht mal überein :-(

Extraseiten:

https://kleiderordnung.berlin/en/imprint/

https://kleiderordnung.berlin/impressum/

All News:

https://kleiderordnung.berlin/news/

Single News:

https://kleiderordnung.berlin/en/all-year-vest-by-lilli-mendelssohn-and-the-sustainable-stylist-339/

@openmindculture
Copy link
Owner Author

openmindculture commented Sep 14, 2023

.... und es gibt noch gar kein rel alternative meta tag in meinem custom HTML Head.

Front Page URL Fix. ✅

  • Ensure that settings -> reading is set to display a static front page. Yes, it is! ✅
  • Open languages -> settings ...
  • ... and notice that each section has details that open when clicking on the respective line's settings link!

There, it's quite straightforward to activate otion 8 (❽), the only one not shown in the polylang tutorial screenshot:

✅ Die URL der Startseite enthält den Sprachcode statt dem Seitennamen oder der Seiten-ID
Beispiel: https://kleiderordnung.berlin/ anstatt https://kleiderordnung.berlin/beispiel-seite/

settings screenshot

Polylang Tutorial Source:
https://polylang.pro/doc/url-modifications/#front-page-url

The front page url contains the language code instead of the page name or page id
❽ This option is available only if you chosen to display the front page as a static page in Settings > Reading.
For a site in English and in French, the URLs of your home pages would look like:

http://www.yoursite.com/en/
http://www.yoursite.com/fr/

instead of

http://www.yoursite.com/en/home/
http://www.yoursite.com/fr/home-fr/

If English is your default language, you can even hide this language code /en/ by checking the option ❻. When both options ❻ and ❽ are checked, the URLs of your home pages look like:

http://www.yoursite.com/
http://www.yoursite.com/fr/

Canonical Fix, Alternative Language Version(s)

Wenn wir das in der Navi kennen, ist es für meta dasselbe;
ggf. verlagern um Redundanz zu vermeiden.

Zunächst mal pragmatisch alles hinzufügen und korrigieren, was einfach umzusetzen ist und zeitnah deployen zwecks SEO, dann manuell verifizieren und in Google Search Console ebenfalls "validate fix" anfordern. ✅

@openmindculture
Copy link
Owner Author

openmindculture commented Sep 14, 2023

@openmindculture
Copy link
Owner Author

Manually generate a robots.txt file to disallow leftover example page URL that google keeps trying to index, and to point to the correct sitemap URL. Also manually generate sitemap.xml with the relevant main pages (without every single news post). Follow-up TODO: should be generated by WP core or Yoast SEO? Or does our theme have to implement sitemap generation?

robots.txt

User-agent: *
Allow: /
Disallow: /beispiel-seite/
Sitemap: https://kleiderordnung.berlin/sitemap.xml

@openmindculture
Copy link
Owner Author

Google Search Console: Validation started
Started: 9/22/23

@openmindculture
Copy link
Owner Author

Sitemap explizit konfiguriert in Search Console.

Google has started validating your fix of Page indexing issues on your site. Specifically, we are checking for ‘Crawled - currently not indexed’, which currently affects 2 pages.

@openmindculture
Copy link
Owner Author

openmindculture commented Sep 27, 2023

Technical SEO failures reported on 27 September 2023:

Some fixes failed for Page indexing issues on site kleiderordnung.berlin

You requested that Google validate your fix of Page indexing issues on site kleiderordnung.berlin. The fix requested was for the following issue: 'Page with redirect'.

New reason preventing your pages from being indexed

Search Console has identified that some pages on your site are not being indexed due to the following new reason:

Page with redirect

If this reason is not intentional, we recommend that you fix it in order to get affected pages indexed and appearing on Google.

Pages with intentional redirects:

Possible problems:

@openmindculture
Copy link
Owner Author

Page with redirect: Validation started: 10/12/23

Everything else should redirect to one of the canonical DE/EN versions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PHP ready
Projects
None yet
Development

No branches or pull requests

1 participant