Support Forums

 
  iFinity Support Forum  DotNetNuke Modu...  Url Master  Redirecting multiple domains each to their own page?
Previous Previous
 
Next Next
New Post 7/31/2008 3:12 AM
  Philipp Becker
4 posts
No Ranking


Redirecting multiple domains each to their own page? 

Hi,

 

I'm trying to accomplihsh the following:

I have many domains where each of them should redirect to a certain page within the sitemap in a given portal

domain-A.com > redirect to tab-A

domain-B.com > redirect to tab-B

This will only be valid if the visitor comes in on the domain without any path information. Of course the visitor should remain on the domain that he entered the website with, it just that I want him to come to a certain landing page, depending on the domain he is using.

If and where can I set this up?

Thanks,Philipp

 
New Post 7/31/2008 8:28 AM
  Bruce Chapman
640 posts
1st Level Poster


Re: Redirecting multiple domains each to their own page? 

Philipp - are the two domains in the same portal (ie, two different portal aliases?), or are we talking two different portals in the one DNN install?

 
New Post 7/31/2008 5:56 PM
  Philipp Becker
4 posts
No Ranking


Re: Redirecting multiple domains each to their own page? 

They're all in the same portal

 
New Post 8/1/2008 8:04 AM
  Bruce Chapman
640 posts
1st Level Poster


Re: Redirecting multiple domains each to their own page? 

Ok, that would make it more difficult.  All of the redirects are based within the domain - there isn't a way to forward from one domain to another within the same portal. 

I think the best thing to do would be to write a small utility that does the forwarding for you.  This could just compare the portal alias, and forward to a specific home page based on a large case statement.

ie

switch (portalSettings.PortalAlias.httpAlias)

case "portal1.com"

  //do 301 redirect to portal1.com/portal1homepage

case "portal2.com"

//do 301 rediect to portal2.com/portal2homepage

You can just put this into a ascx file and create a simple module around it.

 
New Post 8/1/2008 5:21 PM
  Philipp Becker
4 posts
No Ranking


Re: Redirecting multiple domains each to their own page? 

Yep, that's what I've done in the meantime, :-)

 
Previous Previous
 
Next Next
  iFinity Support Forum  DotNetNuke Modu...  Url Master  Redirecting multiple domains each to their own page?
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.