Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Redirecting a portal to another portal
Previous Previous
 
Next Next
New Post 6/23/2008 12:07 PM
User is offline Ralph Brenner
23 posts
www.snapforseniors.com
10th Ranked






Redirecting a portal to another portal 

Greetings. Does anyone know how to do this?

I have a parent portal, say http://www.sampleABC.com and that portal client controls the DNS A REC for it, I do not. I'd like to redirect all traffic going to it to another portal on the same DNN instance, say http://www.samplexyz.com. Is there a simple way to do this within DNN?


Ralph
Search for Senior Housing and Senior Living Options
http://www.snapforseniors.com
 
New Post 6/23/2008 12:23 PM
User is offline Will Strohl
1381 posts
www.WillStrohl.com
6th Ranked




Re: Redirecting a portal to another portal 
Modified By Will Strohl  on 6/23/2008 2:29:29 PM)

A quick and easy way might be to use the URL Redirect.  Open you siteurls.config and add a new XML node with the following:

LOOKFOR
http://www.sampleabc.com

REPLACEWITH
http://www.samplexyz.com

However, you should know that this will change it across the board, so your original or parent site would no longer be accessible unless you commented out or removed that rule.

I would suspect that you need a more flexible solution.  What I suggest is determining what your business rules are and creating a module around that.  For instance, if at IP # xxx.xxx.xxx.xxx, show the parent portal, otherwise, redirect all users to the child portal. 

So you would build the module with that logic, and then install it on your parent portal.  When it is installed, place it on the home page of the parent portal, then using the module settings, display it on all pages.

[EDIT]
I just realized that there is an even easier way to do the same thing.  Just put the same logic into your skin file instead of a module.  That way, you do not need to create a module package (if that is too much for you). 
[/EDIT]


Will LinkedIn profile
DNN Training Videos | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 6/23/2008 11:26 PM
User is offline Ralph Brenner
23 posts
www.snapforseniors.com
10th Ranked






Re: Redirecting a portal to another portal 

Thanks Will.

All good ideas. I went with the SiteUrl.config method. Works like a charm. Took a little doing to get it to work...then we realized that it helps to but the redirects like this first the the rules vs last.


Ralph
Search for Senior Housing and Senior Living Options
http://www.snapforseniors.com
 
New Post 6/24/2008 6:38 AM
User is offline Will Strohl
1381 posts
www.WillStrohl.com
6th Ranked




Re: Redirecting a portal to another portal 

I am glad to help.  Your last sentence confused me a bit.  Is your problem solved?


Will LinkedIn profile
DNN Training Videos | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Redirecting a portal to another portal
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de
The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com
DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP