Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • vaibhav 119 posts 139 karma points
    Oct 25, 2011 @ 12:30
    vaibhav
    0

    Problem in Umbraco Website

    Hello,

    firstly i developed my website in umbraco while umbraco was hosted on the "Web Matrix" .

    After whole developement i shifted umbraco hosting to the IIS7.....

    Now the problem id that links are not shown properly ....

    like it should show like  http://www.abc.com/a.aspx  ; but actually its showing http://a.aspx .......

    i really dont know what happened while shifting the host ...

    Please guid me to solve this problem .....

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Oct 25, 2011 @ 12:34
    Ismail Mayat
    0

    did you set host name on the home page node?  Click home page node right click and select manage host names and then add it there.

    Regards

    Ismail

  • vaibhav 119 posts 139 karma points
    Oct 25, 2011 @ 12:37
    vaibhav
    0

    Thanx for reply,

    Yes i did set the host name .... but still its the same problem ....

  • Rodion Novoselov 694 posts 859 karma points
    Oct 25, 2011 @ 13:09
    Rodion Novoselov
    0

    Hi. How do you build your link's hrefs?

  • vaibhav 119 posts 139 karma points
    Oct 25, 2011 @ 13:25
    vaibhav
    0

    i have created it dynamically according to the name given by the admin ..... like if admin creates page named soutions under home page then it will have link as http://www.abc.com/solutions.aspx

    code is ...

    <a href="{umbraco.library:NiceUrl(@id)}">
                        <xsl:value-of select="@nodeName"/>
                      </a>

  • Rodion Novoselov 694 posts 859 karma points
    Oct 25, 2011 @ 13:36
    Rodion Novoselov
    0

    Normally NiceUrl generates a relative url to a page (like /solution.aspx). What is your setting for useDomainPrefixes in your umbracoSettings.config file?

  • vaibhav 119 posts 139 karma points
    Oct 25, 2011 @ 14:03
    vaibhav
    0

    useDomainPrefixes was true ....i changed it to false then it worked fine .....

    but what does that mean ? ......

  • Rodion Novoselov 694 posts 859 karma points
    Oct 25, 2011 @ 14:08
    Rodion Novoselov
    0

    useDomainPrefixes=true means that NiceUrl adds a current domain prefix (http://bla-blla-bla.com/) to generated urls - it seems that for some strange reasons (i have no clue why) it added an empty domain in your case.

Please Sign in or register to post replies

Write your reply to:

Draft