Support Forums

 
  iFinity Support Forum  DotNetNuke Modu...  Url Master  Redirecting auxiliary portal aliases to main one
Previous Previous
 
Next Next
New Post 11/8/2008 1:12 PM
  Jon Silver
4 posts
No Ranking


Redirecting auxiliary portal aliases to main one 

Can this be done in URL Master? I want 301s for all aliases to redirect them to the main one. Or is siteurls.config the way? Help!

Thanks,

Jon

 
New Post 11/8/2008 2:29 PM
  Bruce Chapman
640 posts
1st Level Poster


Re: Redirecting auxiliary portal aliases to main one 

Hi Jon

There is a change you can make to the web.config to force all requests to a single portal alias.  This is assuming the 'redirectToSubdomain' isn't enough for you (ie, you have www.domain1.com and www.domain2.com, and want all to go to www.domain1.com)

The change you need to make is to add this into the dnnFriendlyUrl section in the web.config:

usePortalAlias="0,www.domain.com"

Where 0 = the portal Id you want to redirect for, and www.domain.com is the portal alias you would like all requests redirected to.

You can check this with Fiddler, or a similar http traffic monitoring tool - when you request on the incorrect alias, you should see a Response Header added:

x-redirect-reason: wrong portal alias

Hope this helps?

-Bruce

 
New Post 11/8/2008 11:17 PM
  Jon Silver
4 posts
No Ranking


Re: Redirecting auxiliary portal aliases to main one 

Thank you Bruce, that's exactly what i wanted.

 
Previous Previous
 
Next Next
  iFinity Support Forum  DotNetNuke Modu...  Url Master  Redirecting auxiliary portal aliases to main one
Can't find the answer?
 

If you can't find the answer and don't have time...try out the Premium Support service.  Get personal attention and get the problem fixed by an expert.

 

Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

If you wish, you can use the Premium Support Service for one-on-one support.