Hi, My client create a SubPage on the site. Now he needs to link it with a direct URL. for example the main site:
www.mainsite.com
and the "special page":
www.specialpage.com
I try to add a hostname on the subpage, that work good, but all the menus and links to root "/" in this special page now point on www.specialpage.com instead of www.mainsite.com or www.mainsite.com/anotherpage ans give me a Page not found
I think is not the same thing. In the link you provide, the external link is a temporary or permanent redirection to an external URL like we can do it with umbracoRedirect for internal pages.
For my client, the need is inverted. I need to let an external url reach directly a subpage without breaking down the "normal root node" like it does if I have a hostname on the subpage.
for example: if on the browser I type www.specialpage.com Umbraco need to redirect it to www.mainsite.com/specialpage. If it is not possible to do that in umbraco, I will use IIS rewriter and do it from there.
Hi Pierre.
If I understant, you want to redirect from :
www.specialpage.com
to
www.mainsite.com/specialpage
The easiest way is indeed to create a url rewriting rule in IIS (or in the config file /config/urlRewriting.config, but it seems the community doesn't recommand it anymore because of performances issues).
The hostname parameter present on nodes can't help you because it doesn't redirect, just replace the hostname by another.
I have seen something during Codegarden 2016 in next Umbraco versions which can do that, but I don't remember how or which future version...
Yes, I think I will do a rewrite rule on IIS for that. The performance issue is not an problem for now. Do you know the syntax for this kind of rewrite?
Direct link to a "special" page. How to do that?
Hi, My client create a SubPage on the site. Now he needs to link it with a direct URL. for example the main site:
www.mainsite.com
and the "special page":
www.specialpage.com
I try to add a hostname on the subpage, that work good, but all the menus and links to root "/" in this special page now point on www.specialpage.com instead of www.mainsite.com or www.mainsite.com/anotherpage ans give me a Page not found
How can I achieve this? Thanks
Hi Pierre,
Try to use redirect on this page. Something like here - http://www.theoutfield.co.uk/blog/2013/10/handling-external-urls-in-umbraco-6
Check while rendering this property, if it's there - add link to external site.
Thanks, Alex
I think is not the same thing. In the link you provide, the external link is a temporary or permanent redirection to an external URL like we can do it with umbracoRedirect for internal pages.
For my client, the need is inverted. I need to let an external url reach directly a subpage without breaking down the "normal root node" like it does if I have a hostname on the subpage.
for example: if on the browser I type www.specialpage.com Umbraco need to redirect it to www.mainsite.com/specialpage. If it is not possible to do that in umbraco, I will use IIS rewriter and do it from there.
Hi Pierre. If I understant, you want to redirect from :
www.specialpage.com
to
www.mainsite.com/specialpage
The easiest way is indeed to create a url rewriting rule in IIS (or in the config file /config/urlRewriting.config, but it seems the community doesn't recommand it anymore because of performances issues).
The hostname parameter present on nodes can't help you because it doesn't redirect, just replace the hostname by another. I have seen something during Codegarden 2016 in next Umbraco versions which can do that, but I don't remember how or which future version...
Yes, I think I will do a rewrite rule on IIS for that. The performance issue is not an problem for now. Do you know the syntax for this kind of rewrite?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.