Move from domain to sub-domain and redirect

I am using Digital Ocean to host Ghost and it was originally setup at https://nocodeassistant.com. I want to move Ghost to sub-domain (https://blog.nocodeassistant.com) and setup the redirect as well. I am stuck here

It says that the directory is incorrect while in the same pic it shows that it is correct directory. What is the issue?

Note: I’ve made changes to Digital Ocean so that when someone goes directly to the sub-domain, they can see the blog and it works perfectly well. I want the people going to the domain to be routed to the sub-domain.

It can be useful https://www.woorank.com/en/edu/seo-guides/page-load-time

Okay you need to cd in that directory
something like

cd /var/www/nocodeassistant.com/htdocs

& to change the url follow url

https://ghost.org/faq/change-configured-site-url/

Thanks @inoryum and @DariaMonsk. The default URL is now updated.

How do I set up redirect from nocodeassistant.com to blog.nocodeassistant.com? I tried uploading the redirect json file in the admin panel but it did not work. Do I need to make changes to .yaml?

seems you are using cloudflare… so you can easily do it by using Cloudflares Page Rules