Forum Discussion

Henrik's avatar
Henrik
Advisor
12 years ago

Sub domain for one board or one category

Hi everyone,

 

Is it possible to set a sub domain for one board or one category?

For instance, we'd like to have blog.community.com for our blog. It is "nicer" and easier to remind.

 

We have managed the "DNS" part but the user session and cookies are lost when he goes from www.community.com to blog.community.com

Would you have any idea on how we could manage the user session?

 

Thanks a lot for your help, and have a nice day !

 

Henrik

  • Currently cookies are written using the full hostname domain by default, so if you're accessing the community via www.community.com the cookies will be written in the www.community.com domain. As you've discovered, this makes them inaccessible to other subdomains such as blog.community.com.

     

    This behavior is configurable to some extent (i.e. some cookies can be written in the root domain ".community.com" instead), but your mileage may vary as this is a fairly rare use case. If this is something you're interested in pursuing further, I'd suggest filing a case via our customer case portal so that our Support team can assist with adjusting the configuration of your staging environment so that you can evaluate this approach further.

  • AdamN's avatar
    AdamN
    Khoros Oracle

    There are ways of approaching this, but as you've already encountered there are often many issues associated with having more than one CNAME for a community. Would it be acceptable if blog.community.com just simply redirected to the blog url (ie. http://www.community.com/t5/your-blog/bg-p/yourblog)? That might be your best approach so you don't have to worry about issues with cookies between different hostnames.

    • Henrik's avatar
      Henrik
      Advisor

      Hi AdamN,

       

      Thank you for your answer!

      I've tried the redirect, which works fine.

       

      We would like to go further, though.

      If we want to have the url remain "blog.community.com", is it really complicated?

       

      Cheers,

      henrik

      • AdamN's avatar
        AdamN
        Khoros Oracle

        Currently cookies are written using the full hostname domain by default, so if you're accessing the community via www.community.com the cookies will be written in the www.community.com domain. As you've discovered, this makes them inaccessible to other subdomains such as blog.community.com.

         

        This behavior is configurable to some extent (i.e. some cookies can be written in the root domain ".community.com" instead), but your mileage may vary as this is a fairly rare use case. If this is something you're interested in pursuing further, I'd suggest filing a case via our customer case portal so that our Support team can assist with adjusting the configuration of your staging environment so that you can evaluate this approach further.