S
S
sparco3562017-02-07 13:20:03
htaccess
sparco356, 2017-02-07 13:20:03

How to implement URL substitution through .htaccess?

Hello, please help me, I need to get an xml document from a subdomain on the main domain without changing the URL.
By following this link: domain.ru/myxml
get a file from: my.domain.ru/folder/myxml.xml
At the same time leave the URL: domain.ru/myxml
Is this perversion possible through .htaccess?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2017-02-07
@sparco356

Nothing needs to be done
"symbolic link"
https://losst.ru/simvolicheskie-i-zhestkie-ssylki-linux

S
sparco356, 2017-02-07
@sparco356

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 browser should have the URL :domain.ru/sitemap.xml but take the file from work.domain.ru/sitemap/sitemap.xml.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question