I was awarded with a task to redirect all the pages of old website (build on typo3 v.8) to the new domain. This needs to be 301 (permanent redirects) 1:1 redirect. So each page needs to be redirect to the same page living on the other domain. Example a.com/contact -> 301 -> b.com/contact.
I am using url_forwarding extension for typo3. I managed to redirect all 120 pages only to notice that the last one / or the home page url won't redirect to the new domain. Would anybody know how to do this using url_forwarding? Thank you kindly for all your help.
That sounds like a classic domain redirect to me. You don't need an extension for that. You can add the following redirect in the .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$
RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]
</IfModule>
See https://wpscholar.com/blog/redirect-old-domain-to-new-domain-via-htaccess/
Explanation: All requests to the old domain with or without www prefix are redirected to the new domain with server code 301. The page path is appended with $1.