More in this section

Forums / Developing with Sitefinity / Sub domains images

Sub domains images

5 posts, 0 answered
  1. Sang
    Sang avatar
    13 posts
    Registered:
    14 May 2008
    02 Jul 2008
    Link to this post


    I'm currently testing out Sitefinity SP2 Hotfix 1616

    So I have one WebSite and 2 domains pointing to it:
        www.domain1.com
        www.domain2.com

    In the SiteMap I have:
        Root - group page
            domain1 - group page
                default.aspx
                page1.aspx
            domain2 - group page
                default.aspx
                page1.aspx

    When I go to either domain the correct default page is loaded, but the images are broken and the sitemap links are incorrect...the images have been uploaded into Sitefinity and in the master page I have logic that is pulling the image based on tags to determine the correct image to pull for each domain.

    When I view the site through Sitefinity...all the Images and SiteMap links are working correctly.

    Does anyone know why?  Did I miss a configuration? 

    I have implemented the sample solution from: http://www.sitefinity.com/support/forums/support-forum-thread/b10432-bbbahh.aspx

            static DomainUrlHelper()
            {
                domains = new Dictionary<string, string>();
                domains.Add("www.domain1.com", "/Root/domain1/");
                domains.Add("www.domain2.com", "/Root/domain2/");
            }


    I'm also not able to browse to www.domain1.com/Site/Libraries/ImageFolder/Image.sflb to look to see if the image exist there...

    but again I can do it when I'm debuggin...and that url will work and will be up the image...

    My broken sitemap links have a url that resembles www.domain1.com/Shared/~Default.aspx which does not work, but when I type in the broswer www.domain1.com/Default.aspx it works, is the sitemap links wrong because I have Master.Page placed in a Shared folder, that all my Master pages in App_Master inherit from.

    Thanks in advance,

    Sang

  2. Sang
    Sang avatar
    13 posts
    Registered:
    14 May 2008
  3. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    08 Jul 2008
    Link to this post
    Hello Sang,

    Yes, it seems that having a .master file in a folder different then App_Master is a problem.
    In order to fix it, you should copy the main .master file in the ~/App_Master folder.

    Sincerely yours,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. Sang
    Sang avatar
    13 posts
    Registered:
    14 May 2008
    08 Jul 2008
    Link to this post
    Hey Vlad,

    That fixed the problem with the layout of the pages, the links are wrong and the pictures are still not showing up.

    For instance my picture url is  www.domain1.com/Project/Libraries/ImageFolder/Image.sflb ?

    Do you know why this is happening?  Do I need to configure something else?
  5. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    09 Jul 2008
    Link to this post
    Hi Sang,

    Please refer to our Troubleshooting section.

    Do let us know if this helps.

    All the best,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
5 posts, 0 answered