I can't solve this problem

Depends on some things. Unfortunately you overlooked the support template so we don’t have enough information about your environment to answer.

Creating a custom .htaccess in your web root is only necessary if you’ve deployed Nextcloud in a subdirectory.