if I use
RewriteRule ^(.*)$ dir/file1.php [L]
in the directory for sub.domain.com
, then browsing to sub.domain.com/whatever.php
will deliver sub.domain.com/dir/file1.php
, while the browser address field still display sub.domain.com/whatever.php
So far so good...
But if I want to deliver a file that is located in "../domain/file2.php" (i.e. go up one step in the directory hierarchy and then...), how would I specify that? What I have in mind is to do something like this:
RewriteRule ^(.*)$ ../domain/file2.php [L]
The problem is that using 2 dots does not seem to work in htaccess... what is the equivalent in htaccess?