PDA

View Full Version : domainname point to directory on other domain


lexthoonen
17th April 2008, 17:37
Hi, I've been checking co-domain and such, but I haven't found out yet how to do the following:

http://www.domain-one.com

point to (without forwarding, so www.domain-one.com should not change into the next name)

http://www.goaldomain.com/subfolder/

Is that possible?

Preferrably in such a way, that:

http://www.domain-one.com/subfolder-one/

as well shows:

http://www.goaldomain.com/subfolder/subfolder-one/

(but in the browser you'd still see http://www.domain-one.com/subfolder-one/ )

So I guess I'm talking about links.

Thanks!

Ryanmt
17th April 2008, 18:02
No idea if it would work but try a symlink to the goal folder.

ln -s <destination> <linkname>

If the desired link filename is the same as the destination's filename, and the current working directory is the desired location for the link, then you only need:

ln -s <destination>

i think you need something like ln -s /var/www/web{x}/web/subfolder when your in the web directory for the domain-one eg /var/www/web{domain1}/web

falko
17th April 2008, 22:08
You can do this with mod_rewrite: http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html