Umbraco 301 redirect - entire site -
i have multiple websites within 1 umbraco installation.
i deleted website , wish re-direct traffic website specific page on different website (within umbraco).
at moment, i've setup template macro:
<umbraco:macro redirecttype="[#redirecttype]" redirecturl="[#redirectto]" alias="genericredirect" runat="server"></umbraco:macro> it re-directs traffic www.domainname.com www.otherdomainname.com/page.aspx.
the problem is, if user types in www.domainname.com/anypage.aspx gives them 404 error.
is there way re-direct traffic www.domainname.com page of choice within umbraco?
thanks
in config folder urlrewriting.config.
with file can redirect complete site domain:
example (not tested)
<add name="domain1.com redirect" redirectmode="permanent" redirect="domain" ignorecase="true" rewriteurlparameter="excludefromclientquerystring" virtualurl="http://www.domain1.com/(.*)" destinationurl="http://www.destinationdomain.nl/" /> (the virtualurl regex)
Comments
Post a Comment