ISPConfig 2.2.7 - domain name forwarding

Discussion in 'General' started by Hans, Oct 22, 2006.

  1. Hans

    Hans Moderator Moderator

    I want to forward a domain name to another location using the co-domain/forwarding option:

    The domain name to be forwarded is:http://www.domain-A.tld
    The location to forward to: http://www.domain-B.tld/subdirectory/filename.htm

    (Both sites/locations are on the same ISPConfig server).

    Everyhting seems to be ok, but when i visit http://www.domain-A.tld in my browser,
    the domainname http://www.domain-A.tld is forwarded to location http://www.domain-B.tld/subdirectory/filename.htm/ and not to location http://www.domain-B.tld/subdirectory/filename.htm as defined.

    The result is an 404 - file not found error.

    How can i remove the extra / at the end of the URL, so that the forward operation will operate as it should be?
    Or is this a small bug, because i did not define the extra / at the end of the URL under the co-domain/forward option?
     
    Last edited: Oct 22, 2006
  2. chrisp8756

    chrisp8756 New Member

    easy fix

    Granted I don't have the program solution, but the way I got around this problem was making the default index redirect to what ever domain or what ever I wanted.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Hans,

    you can add the co-domain without forwarding and then add a redirect directive for apache in the apache directives field.
     
  4. Hans

    Hans Moderator Moderator

    Thank you Till.

    I understand that ISPConfig assumes that the location to forward to, is always a directory. It would be nice if we can add a directory (with /) and a specific file ass well (without /), as it is more specific.
     

Share This Page