Question sitemaps does not work in GoogleSearchConsole
- xilef
- Topic Author
- Offline
- New Member
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
You usually need enter the full URL - not just the final part
e.g.
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
Please Log in or Create an account to join the conversation.
- jjr
- Offline
- New Member
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
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.
- jjr
- Offline
- New Member
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
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.
- jjr
- Offline
- New Member
Merci...
Jean-Jacques Rousselle
Please Log in or Create an account to join the conversation.
- xilef
- Topic Author
- Offline
- New Member
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
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
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.
- jjr
- Offline
- New Member
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
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.
- jjr
- Offline
- New Member
Jean-Jacques Rousselle
Please Log in or Create an account to join the conversation.
- bertkoor
- Away
- Platinum Member
- Greetings from Utrecht, Holland
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
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- jjr
- Offline
- New Member
"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
- Greetings from Utrecht, Holland
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:
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:
Maybe this helps others to analyse what really is going wrong behind the scenes...
stamboom.BertKoor.nl runs on webtrees v1.7.13
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
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.
- jjr
- Offline
- New Member
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
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.