The virtual url ~/ will redirect the main hostname right? But in my umbraco installation I setup two hostname. the ~/ pertains to the first hostname and the 2nd hostname is www.site2.com
Hi Fuji,
The umbraco redirect doesn't recognize the querystring that I have. That's why I didn't use it.
redirecting a hostname to a specific page
Hi,
I have two hostname in one umbraco installation and the other hostname directs to a specific page. How can I redirect http://www.site.com to http://www.site.com/page1.aspx and http://www.site/com/ar to http://www.site.com/ar/page1.aspx
Any ideas?
in urlrewriting.config:
<add name="Site1"
virtualUrl="^~/"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/page1.aspx"
ignoreCase="true" />
<add name="Site2"
virtualUrl="^~/com/ar"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/ar/page1.aspx"
ignoreCase="true" />
You could add a Property in your Document Type with alias "umbracoRedirect", Type Content Picker.
Then under your Content Section choose the page under which you want the page to be redirected to.
Hi Jacob,
The virtual url ~/ will redirect the main hostname right? But in my umbraco installation I setup two hostname. the ~/ pertains to the first hostname and the 2nd hostname is www.site2.com
Hi Fuji,
The umbraco redirect doesn't recognize the querystring that I have. That's why I didn't use it.
When you go you under your Content Section and choose the document Type cant you pick up a node?
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.