Hi Donatj,
thanks for your redirect script.
I tried to use it to redirects over 300 links.
But i have a problem i have differenti type of links:
old /it/notizie/2026-a-title-for-thenews.html new https://www.mywebsite.it/notizie/2019/notizia/a-title-for-thenews old /it/notizie/2025-s-second-title.html | new https://www.mywebsite.it/notizie/2019/notizia/a-second-title
In this first case the script create generic Rewrite rule one for each single link as:
RewriteRule ^it/notizie/2026-a-title-for-thenews.html https://www.mywebsite.it/notizie/2019/notizia/a-title-for-thenews? [R=301,L]
And it's perfect. I made a collctnio of this 300 links, insert it in a rewritemap file and recal it to my.htaccess
Then i'd like to create other rules that could be applied if the all the first links of links are not recalled fro ma server request
So
I'd like generic:
https://www.mywebsite.it/tags/tag/allthelinks after that could be redirect to https://www.mywebsite.it
And
then insert a rule like this:
RedirectMatch 301 ^/it(.*)$ https://www.mywebsite.it$1
That is all the files who are not inserted in the reidrect match generated weith scripts genrically have to redirect to the home page. I don't know if is a order problem or something else but this rules don't work for me. Tried to insert into the script but i understand the script can't manage all cases.
Have you some suggestions?
Thanks!