So here’s what I’m trying to accomplish. I have this link:
https://www.mydomain.com/foo/bar/
Now, the directory "foo" actually has a site in it that is up and operational. For the sake of organization I have had to create another site like this:
https://www.mydomain.com/fubar/
So in reality the link https://www.mydomain.com/foo/bar/
isn’t really a directory with anything it. What I would rather like to happen is when people go to https://www.mydomain.com/foo/bar/
that this address doesn’t change in the address bar, but rather on the backend the software actually brings up and uses https://www.mydomain.com/fubar/
.
EXAMPLE:
When someone goes to https://www.mydomain.com/foo/bar/sign_up.php
they still see this in their address bar, but what they're actually getting is https://www.mydomain.com/fubar/sign_up.php
.
What I've tried so far to no avail:
htaccess at https://www.mydomain.com/foo/
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^bar/(.*) ../fubar/$1 [NC,L]
Also
RewriteCond %{PATH_INFO} ^bar/(.*)$ RewriteRule ^.*$ ../fubar/%1 [L]
htaccess at https://www.mydomain.com/
RewriteRule ^foo/bar/(.*) /fubar/$1 [L]
UPDATE: The directory https://www.mydomain.com/foo/
is actually the root directory for https://www.anotherdomain.com/
. So https://www.anotherdomain.com/bar
should be bringing up https://www.mydomain.com/fubar/