Thank you for your input. I did already change the siteurl in wp_options. I tried your second option, but for me, it did nothing. However, I noticed that in wp_posts all the links to the posts and pages still contained the old URL. I replaced all these old URLs with the new one, and now the website works again.