Indexing pages - .htacces configuration.

Hi I am using newest SPIP 4.2.6 version and I have some problem with indexing in Google Search console. I notice that I can use both link with and without .html and I get that same page. I think that could causes that problem. I am quite sure that in my older version SPIP page was redirected too that link I choose in URL configuration. Do you think my problems with indexing could be connected with .htacces? How to fix it? I use default htacces file.

https://radoslawsobik.pl/?-Fotografia-wnetrz-i-nieruchomosci-
https://radoslawsobik.pl/?-Fotografia-wnetrz-i-nieruchomosci-.html
https://radoslawsobik.pl/index.php
https://radoslawsobik.pl/

(https://radoslawsobik.pl/spip.php?rubrique15)

also works :frowning: without redirecting

Normally, Google should crawl only url which have a link that point on, and not the alias if there a no link.

However, The <link rel="canonical" href=..."> tag should prevent google to avoid problem.

It works here for that type of adress:

https://www.forzeitaliane.it/spip.php?article25
https://methodal.net/spip.php?article25

@maieul I notice that from each adress I get difirent rel cannonical. Each adress has thier own canonical.

@maieul I notice that from each adress I get difirent rel cannonical. Each adress has thier own canonical.

that is the problem, normally that should not. You may have a mismade template. Which one do you use ? Could you use a ?var_mode=inclure to get the name of the file producing the head?

Normally, the canonical generation should be of this form [<link rel="canonical" href="(#URL_ARTICLE|url_absolue)" />] (for a article page)

I use HTML5UP - Hyperspace

That is very strange. It looks lik good. Did you change recently your urls setting ? It may be a problem of cache.

Merci @maieul , I works after cache cleaning. That is true taht I play with URLs a lot recently.

I am just wondering Should I do redirect from

[saisissez ou collez du code ici](https://radoslawsobik.pl/-Wirtualne-Spacery-Google-Street-View-)

to

[saisissez ou collez du code ici](https://radoslawsobik.pl/-Fotografia-wnetrz-i-nieruchomosci-.html)

If yes how?

I don’t think it works like this. On my website, it does not redirect, but the canonical attribute is good.

I am perplex.