have domain specified inside the links of pages generated with Umbraco
Not sure the title explains what I want to do, so here goes: I have a website constructed with Umbrac开发者_运维问答o 4.5.x and the links in the pages use relative paths. I want to have the domain prepended to these links and don't know how to do that; I didn't really used Umbraco so I am a newby at this :(.
What I want to do is replace links like:
<a href="/about-us/who-we-are.aspx">Who we are...</a>
with something like:
<a href="http://www.our-domain.com/about-us/who-we-are.aspx">Who we are...</a>
or
<a href="www.our-domain.com/about-us/who-we-are.aspx">Who we are...</a>
What are the things that I must do for this? Is it all Umbraco configuration or do I need to write some code? Or both?
I found something about the useDomainPrefixes config but it does not seem to work (not sure if it is even related to what I want to do).
Thank you!
I suggest using UrlAbsolutifierModule ( http://www.paraesthesia.com/archive/2007/12/14/urlabsolutifiermodule---convert-urls-in-asp.net-output-to-absolute.aspx ) or similar.
I finally solved this by using Rewrite rules for IIS, Inbound + Outbound.
I also tried with NiceUrlFullPath but it did not work.
精彩评论