Answer the question
In order to leave comments, you need to log in
How to implement content substitution without changing the url?
My site has several subdomains, on the main domain.ru there is front and on the subdomain work.domain.ru there is back.
On the back, a sitemap is generated and saved to the "sitemap" folder; the address is obtained to the sitemap: work.domain.ru/sitemap/sitemap.xml
And I need to get it on the front at the address: domain.ru/sitemap.xml.
And the URL should be in the browser: domain.ru/sitemap.xml but the file should be taken from work.domain.ru/sitemap/sitemap.xml.
Answer the question
In order to leave comments, you need to log in
On the back, a sitemap is generated and saved to the "sitemap" folder; the address is obtained to the sitemap: work.domain.ru/sitemap/sitemap.xml
Site files are in the same directory, backend and frontend are separated only by config?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question