S
S
sparco3562017-02-07 14:47:35
Yii
sparco356, 2017-02-07 14:47:35

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

2 answer(s)
M
Maxim Fedorov, 2017-02-07
@sparco356

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

sitemap.xml has no place in the backend. it is not needed there, it's better not to ask yourself how to change the URL, but ask questions - how to save it when generating it in frontendf

E
Evgeny Bukharev, 2017-02-07
@evgenybuckharev

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 question

Ask a Question

731 491 924 answers to any question