Web based family history software

Question sitemaps does not work in GoogleSearchConsole

More
3 years 7 months ago #1 by xilef
Hi,

I activated the sitemaps with me. The robots.txt is on the 1st level and the line is there:
Sitemap: www.stammbaum-staeck.de/webtrees/index.p...btrees%2Fsitemap.xml
Then I entered the sitemap url "/index.php?route=%2Fwebtrees%2Fsitemap.xml" in the console.
Unfortunately, no url could be found, although it is successful

Karl

webtrees V2.1.2
www.stammbaum-staeck.de/webtrees/
PHP Version 8.1
MariaDB-Version 10.5.11

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago - 3 years 7 months ago #2 by fisharebest
Replied by fisharebest on topic sitemaps does not work in GoogleSearchConsole
> Then I entered the sitemap url "/index.php?route=%2Fwebtrees%2Fsitemap.xml" in the console.

You usually need enter the full URL - not just the final part

e.g.
Code:
https://www.stammbaum-staeck.de/webtrees/index.php?route=%2Fwebtrees%2Fsitemap.xml

The sitemap looks OK to me - www.stammbaum-staeck.de/webtrees/index.p...btrees%2Fsitemap.xml

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Last edit: 3 years 7 months ago by fisharebest.

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #3 by jjr
Après vérification, sitemap.xml n'est pas trouvé... il faut que j'utilise rousselle-roussel.fr/index.php?route=%2Fsitemap.xml qui est peu élégant !
De base, je n'ai pas de robots.txt... ???

Comment faire évoluer positivement mon référencement ?

Jean-Jacques Rousselle

Jean-Jacques Rousselle

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago #4 by fisharebest
Replied by fisharebest on topic sitemaps does not work in GoogleSearchConsole
> Après vérification, sitemap.xml n'est pas trouvé... il faut que j'utilise rousselle-roussel.fr/index.php?route=%2Fsitemap.xml qui est peu élégant !

The solution is called "pretty URLs". See webtrees.net/faq/urls/

> De base, je n'ai pas de robots.txt... ???

If you enable pretty URLs, then robots.txt will be generated automatically!

If not, then you can allow webtrees to generate a robots file (using a standard URL), and then copy the file to robots.txt.

e.g. dev.webtrees.net/demo-stable/index.php?r...-stable%2Frobots.txt

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #5 by jjr
1)
Vu webtrees.net/faq/urls/, j'ai ajouté, dans data/config.ini.php, rewrite_url="1", car tout le monde n'est pas en https !
Cela ne fonctionne pas ni en local sous wamp ni en distant.
En local http://rllerl207/index.php?route=%2Fsitemap.xml fonctionne mais pas la "clean URL" http://rllerl207/sitemap.xml
En distant rousselle-roussel.fr/index.php?route=%2Fsitemap.xml fonctionne mais pas la "clean URL" rousselle-roussel.fr/sitemap.xml
Ne devrait-il pas y avoir un .htaccess sous la racine ?
2)
Google me dit ne pas trouver certaines références. Par exemple rousselle-roussel.fr/individual.php?pid=...ed=Rousselle-Roussel
Après vérification, avec la version "1", le sitemap donnait .../individual.php?pid=I956&ged=Rousselle-Roussel
Avec la version "2" j'ai rousselle-roussel.fr/index.php?route=%2F...2FI956%2FJean-Hubert

Comment retrouver mon référencement ?
Jean-Jacques Rousselle

Jean-Jacques Rousselle

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago #6 by fisharebest
Replied by fisharebest on topic sitemaps does not work in GoogleSearchConsole
> j'ai ajouté, dans data/config.ini.php, rewrite_url="1"

To enable pretty URLs, you must do two things:

1) tell webtrees to create pretty URLs (add the line rewrite_urls).

2) tell your webserver to forward all URLs to index.php (e.g. with a .htaccess file).

> Ne devrait-il pas y avoir un .htaccess sous la racine ?

Yes. You must create this. The file will be different for every server.

> Google me dit ne pas trouver certaines références.

The URLs are different in webtrees 2.0

If you use pretty URLs, then webtrees can also recognise the old URLs.
This is provided by a module called "Legacy URLs".

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #7 by jjr
Est-il possible d'avoir un exemple de .htaccess à utiliser pour que le référencement fonctionne. J'ai un site personnel sous Drupal 8 dont les "clean URL" fonctionnent parfaitement donc OVH mon provider les autorise.
Merci...

Jean-Jacques Rousselle

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #8 by xilef
Hello,
the sitemap.xml doesn't work for me. I will now put webtrees 1.7.17 back into operation.
It is a pity that the webtrees version 2.0.7 cannot be used for me.

Thank you very much

Karl

webtrees V2.1.2
www.stammbaum-staeck.de/webtrees/
PHP Version 8.1
MariaDB-Version 10.5.11

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago #9 by fisharebest
Replied by fisharebest on topic sitemaps does not work in GoogleSearchConsole

jjr wrote: Est-il possible d'avoir un exemple de .htaccess à utiliser pour que le référencement fonctionne. J'ai un site personnel sous Drupal 8 dont les "clean URL" fonctionnent parfaitement donc OVH mon provider les autorise.
Merci...


There is an example .htaccess file! You must read to the end of the page!

webtrees.net/faq/urls/

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago #10 by fisharebest
Replied by fisharebest on topic sitemaps does not work in GoogleSearchConsole

xilef wrote: Hello,
the sitemap.xml doesn't work for me. I will now put webtrees 1.7.17 back into operation.
It is a pity that the webtrees version 2.0.7 cannot be used for me.

Thank you very much


Explain what you mean by "does not work".

Here is the sitemap file from your site:

www.stammbaum-staeck.de/webtrees/index.p...btrees%2Fsitemap.xml

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #11 by jjr
Avec dans le config.ini.php
base_url=" rousselle-roussel.fr "
rewrite_url="1"

Avec un .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
rousselle-roussel.fr/sitemap.xml renvoie sur rousselle-roussel.fr/index.php?route=%2F...le-roussel%2Fmy-page

Qu'est ce qui ne va pas ?

rousselle-roussel.fr/index.php?route=%2Fsitemap.xml fonctionne toujours malheureusement sous la forme
rousselle-roussel.fr/index.php?route=%2F...4%2FFrancois-Bouvier

Jean-Jacques Rousselle

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago #12 by fisharebest
Replied by fisharebest on topic sitemaps does not work in GoogleSearchConsole
Not this:

rewrite_url="1"

But this:

rewrite_urls="1"

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #13 by jjr
Je pensais que "urls" pour "https" et "url" pour "http". Mon offre chez mon hébergeur ne permet pas la connexion sécurisée "https"

Jean-Jacques Rousselle

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Away
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
3 years 7 months ago #14 by bertkoor
Replied by bertkoor on topic sitemaps does not work in GoogleSearchConsole

jjr wrote: Je pensais que "urls" pour "https" et "url" pour "http".


Sorry, but it has nothing to do with https.
The 's' notifies plural form of url.

stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago #15 by fisharebest
Replied by fisharebest on topic sitemaps does not work in GoogleSearchConsole
@jjr - if you change your site to https, you must update base_url in config.ini.php

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #16 by jjr
Si je comprend bien ce que je n'ai, normalement, pas à comprendre
"urls" n'a rien à voir avec le URL sécurisées mais ce n'est ici que le pluriel de URL
La confusion est possible puisque l'exemple est donné pour un une communication sécurisée https://
En local, sous wamp,cela fonctionne...
En ligne, pour rousselle-roussel.fr/sitemap.xml , j'obtiens
«
Erreur lors du chargement de la feuille de style : Échec de l’analyse d’une feuille de style XSLT.
»
Les URLs semblent "clean" (à part le "/tree/" devant le nom de l'arbre qui me semble un peu lourd et inutile).

Jean-Jacques Rousselle

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Away
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
3 years 7 months ago - 3 years 7 months ago #17 by bertkoor
Replied by bertkoor on topic sitemaps does not work in GoogleSearchConsole
When fetching rousselle-roussel.fr/sitemap.xml I get a first fragment of the xml:
Code:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="http://rousselle-roussel.fr/index.php?route=%2Fsitemap.xsl"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc> http://rousselle-roussel.fr/index.php?route=%2Fsitemap-rousselle-roussel-FAM-0.xml </loc> <lastmod> 2020-08-13 </lastmod> </sitemap> <sitemap> <loc> http://rousselle-roussel.fr/index.php?route=%2Fsitemap-rousselle-roussel-FAM-1.xml </loc> <lastmod> 2020-08-13 </lastmod> </sitemap> <sitemap> <loc> http://rousselle-roussel.fr/index.php?route=%2Fsitemap-rousselle-roussel-FAM-2.xml </loc> <lastmod> 2020-08-13 </lastmod> </sitemap> <sitemap> <loc> http://rousselle-roussel.fr/index.php?route=%2Fsitemap-rousselle-roussel-FAM-3.xml </loc> <lastmod> 2020-08-13 </lastmod> </sitemap>


The xml document is not complete, transmission ends with an error.


The second line refers to a XSLT at rousselle-roussel.fr/index.php?route=%2Fsitemap.xsl
When fetching that, I get this:
Code:
~$ curl http://rousselle-roussel.fr/index.php?route=%2Fsitemap.xsl -i HTTP/1.1 302 Found Date: Fri, 14 Aug 2020 09:36:02 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Server: Apache Set-Cookie: WT2_SESSION=94857920e4020152b8498f0c88cc2834; path=/; domain=rousselle-roussel.fr; HttpOnly; SameSite=Lax Referrer-Policy: same-origin X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Cache-Control: no-store Location: http://rousselle-roussel.fr/ Set-Cookie: SERVERID108286=102091|XzZbB|XzZbB; path=/ X-IPLB-Instance: 30859

So it gets redirected to the root of the website. That is obviously not correct.
Fetching the first mentioned part also gets redirected to the wrong location:
Code:
~$ curl -i http://rousselle-roussel.fr/index.php?route=%2Fsitemap-rousselle-roussel-FAM-0.xml HTTP/1.1 302 Found Date: Fri, 14 Aug 2020 09:40:13 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Server: Apache Set-Cookie: WT2_SESSION=df30e2363b5d095dc89331ff6766020e; path=/; domain=rousselle-roussel.fr; HttpOnly; SameSite=Lax Referrer-Policy: same-origin X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Cache-Control: no-store Location: http://rousselle-roussel.fr/ Set-Cookie: SERVERID108286=102091|XzZcA|XzZcA; path=/ X-IPLB-Instance: 30859

Maybe this helps others to analyse what really is going wrong behind the scenes...

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 3 years 7 months ago by bertkoor.

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago #18 by fisharebest
Replied by fisharebest on topic sitemaps does not work in GoogleSearchConsole
Your webtrees site is generating URLs that begin http://

But your site uses HTTPS.

I guess this means that you have the wrong URL in the "base_url" setting in config.ini.php.

This should also begin https://

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #19 by jjr
"should" = devoir !

Avec
«
base_url=" rousselle-roussel.fr "
rewrite_urls="1"
»
j'obtiens
«
Erreur lors du chargement de la feuille de style : Une erreur réseau s’est produite lors du chargement d’une feuille de style XSLT :
rousselle-roussel.fr/index.php?route=%2Fsitemap.xsl
»

Jean-Jacques Rousselle

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
3 years 7 months ago #20 by fisharebest
Replied by fisharebest on topic sitemaps does not work in GoogleSearchConsole
You can ignore teh XSLT error.

The XSL file is only used by browsers.
It is not used by search engines.

The sitemap files are cached for 14 days.

Your cache contains an old XML file - with a link to the old XSL file (http:, not https).

If you ignore the problem for 14 days, it will disappear!

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}