By accessing your files, do you mean in (php) code ? If so, if you use absolute paths the files should all be accessible to you.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Something like this:
RewriteCond %{http_host} ^domain2.com [nc]
RewriteRule ^(.*)$ http://www.domain1.com/$1
If you want this for just specific files, just replace the .*
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
You can add the admin part in the RewriteRule
RewriteRule ^admin/(.*)$ http://www.domain1.com/admin/$1
Change the .* to the filename you want to access, since you don't want all to be redirected.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Hmz, don't think that is possible throught htaccess, because that could cause infinite redirect loops. Sounds more like you want a load-balancer, but that would make only sense between two different servers.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875