I've had a requirement from a client to move a site into a subfolder, I've acheived this using ISAPI rewrite proxying to umbraco on its own domain and setting the hostname in umbraco to the subfolder url.
This works almost perfectly (there's no postbacks going on so everything seems to work) except for some of my page urls are coming out without the domain, specifically those that are on level 2.
My hierarchy is like so
>Content > Root > Page with working url > Page with just /page.aspx
I've tried republishing etc, useDomainPrefixes is set.
If I can get this one issue out the way, it will all be done!
Umbraco NiceUrls not returning with full domain
Hi,
I've had a requirement from a client to move a site into a subfolder, I've acheived this using ISAPI rewrite proxying to umbraco on its own domain and setting the hostname in umbraco to the subfolder url.
This works almost perfectly (there's no postbacks going on so everything seems to work) except for some of my page urls are coming out without the domain, specifically those that are on level 2.
My hierarchy is like so
>Content
> Root
> Page with working url
> Page with just /page.aspx
I've tried republishing etc, useDomainPrefixes is set.
If I can get this one issue out the way, it will all be done!
Hi Rob,
It appears to be a bug with how NiceUrl works... there are a few other topics about it:
http://our.umbraco.org/forum/using/ui-questions/5481-niceurl--3rd-level
http://our.umbraco.org/forum/using/ui-questions/3502-Problem-with-useDomainPrefixes---no-unique-URL-starting-with-3rd-level?p=0 ;
My advice would be to write an XSLT extension that wraps around NiceUrl and checks if a domain/hostname is present - if not, then prepend it.
I'd call it something like "AwesomeUrl" ... you know, something Special like that?! ;-)
Good luck, Lee.
K
I'll give that a try.
is working on a reply...