.htaccess redirect to another domain and keep original domain -


i have problem .htaccess redirect.

i have hosted domain , www.domain-a.com/folder under it. want transparently redirect folder same folder under url :

domain-a.com/folder --> xxx.xxx.xxx.xxx/folder , domain.com-a/folder/folder2 --> xxx.xxx.xxx.xxx/folder/folder2

and on.

folder same folder2 , on different every user. want address bar show domain-a.com , after whatever folder in, contents needs pulled xxx.xxx.xxx.xxx.

i don't want redirect domain-a.com root folder, subfolders.

i have tested many solutions have found similar questions of them works partially. example :

redirecting xxx.xxx.xxx.xxx/folder keeps original domain in address bar, if go domain-a.com/folder/folder2 etc. address bar shows xxx.xxx.xxx.xxx/folder/folder2

i don't want iframe because ip of server public knowledge.

i need because have big databases , scripts uses them on http://xxx.xxx.xxx.xxx (my own server) , hosting costs million. that's why need pull domain-a.com.

thank in advance.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -