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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -