Read file in another domain folder
Posted: Thu Jul 03, 2014 6:57 pm
Hi,
I don't have much experience in servers and I'm trying to do something but I don't know how to do it and do it in a safe way. What I want is:
I have a server with vestacp and configured two domains: domain1.tld and domain2.tld. When someone access domain1.tld I want the server to read the file in domain2.tld/folder. I tried to do it with a .htaccess file but I get a 400 Bad Request error.
The htaccess file that I used was:
Is the .htaacess right? Maybe I will need to change some folder permissions? If so, will it be safe? Can somebody help me? Thanks.
I don't have much experience in servers and I'm trying to do something but I don't know how to do it and do it in a safe way. What I want is:
I have a server with vestacp and configured two domains: domain1.tld and domain2.tld. When someone access domain1.tld I want the server to read the file in domain2.tld/folder. I tried to do it with a .htaccess file but I get a 400 Bad Request error.
The htaccess file that I used was:
Code: Select all
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteRule ^(.*) ../../domain2.tld/public_html/folder/$1