domainname point to directory on other domain

Discussion in 'Installation/Configuration' started by lexthoonen, Apr 17, 2008.

  1. lexthoonen

    lexthoonen New Member

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

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

    Code:
    http://www.goaldomain.com/subfolder/
    Is that possible?

    Preferrably in such a way, that:

    Code:
    http://www.domain-one.com/subfolder-one/
    as well shows:

    Code:
    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!
     
  2. Ryanmt

    Ryanmt New Member

    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
     
    Last edited: Apr 17, 2008
  3. falko

    falko Super Moderator Howtoforge Staff

Share This Page