E
E
Egor2017-08-16 22:17:14
Nginx
Egor, 2017-08-16 22:17:14

How to make a 404 redirect from a subdomain to the main domain (Nginx)?

Hello! I have a subdomain set up on the server where I post my projects, and the Wordpress CMS system runs on the main domain. On the main domain, as you can understand, all pages with HTTP status are built by Wordpress, and on the subdomain they are built by Nginx. So: I would like the 404 status from the subdomain to be passed to the main domain, and ideally, the page would be taken from the main domain, but the URL would not change.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question