There are two sites, one with content and the other with landing.
You need to instantly redirect the user from content.domain.com to domain.com
ubuntu server with apache and nginx
How can I make an instant redirect, but with the condition that access to content.domain.com/folder and content.domain.com/dashboard will be possible without a redirect?
I tried to make a redirect using the nginx config, entered into the server {} section
server_name www.content.domain.com; rewrite ^ http://domain.com permanent; and after that I lost the ability to click on the link content.domain.com/dashboard, etc.
/. and what difficulties did you encounter during implementation? please specify them directly in the question by clicking edit below the text of the question. - aleksandr barakin