co-domains

Discussion in 'General' started by barryhhh, Apr 22, 2011.

  1. barryhhh

    barryhhh New Member

    I have a site which has about ten co-domains on it, however when in a browser if I use one of the co-domains it redirects me to the main domain which is great but it does not change the URL in the input section. What I would like is for it to be seen as the main domain, not as the co-domain.

    Any Ideas
    Barry
     
  2. createch

    createch ISPConfig Developer ISPConfig Developer

    A simple javascript can do what you want.

    e.g. co-domain = sub1.abc.com
    main domain=abc.com

    use the following in the index file of sub1.abc.com:

    <script>
    window.location.href="abc.com";
    </script>
     

Share This Page