Forwarding xxx.de to www.xxx.de

Hi,
I am using version 10.4.32 and I am not very familiar with typo 3.
All is working fine with www.xxx.de but when I just use xxx.de without the www there is an error shows up.
I found the section forwarding in the backend, but I have no idea how to use it?
Hope for help.
Harold

We do this normally with a .htaccess file. This is more performant, than a redirect.

Example:

<IfModule mod_rewrite.c>
	# Enable URL rewriting
	RewriteEngine On
	RewriteCond %{HTTP_HOST} ^domain.de$
	RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]|
</IfModule>

Hi and thank you for your answer.
I do understand this solution, but in this case the website is a company website where I do have the login to typo3 but I do not have access tthe webserver. So I thought if I can realize within the CMS I wont need the hoster to make the changes.