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
Normally NiceUrl generates a relative url to a page (like /solution.aspx). What is your setting for useDomainPrefixes in your umbracoSettings.config file?
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.
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 .....
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
Thanx for reply,
Yes i did set the host name .... but still its the same problem ....
Hi. How do you build your link's hrefs?
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>
Normally NiceUrl generates a relative url to a page (like /solution.aspx). What is your setting for useDomainPrefixes in your umbracoSettings.config file?
useDomainPrefixes was true ....i changed it to false then it worked fine .....
but what does that mean ? ......
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.
is working on a reply...