Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Portal Redirect againPortal Redirect again
Previous
 
Next
New Post
5/7/2007 6:36 AM
 

Hi Guys

Here’s the next chapter on my “Response Redirect” problems:

I found last time that the “redirect” doesn’t clear the browser heading (Browser address window) and I  therefore could “redirect” to the full address by simply redirect both URL’s with a;  “/dotnetnuke” pointing them to the Dot Net Nuke folder in the root.

Now I need to redirect to a “child portal: -  www.bestgoldcoast.com/dotnetnuke/wealth -  which is addressed in the browser as:  -  www.bestgoldcoast.com/wealth -  !!

I now HAVE TO clear data of the browser heading before I can re-direct – but how?

Alternatively it has to be a two step redirect process???

Current portals on the site:

 bestgoldcoast          www.bestgoldcoast.com/dotnetnuke
 Gold Coast Web Wiz  www.goldcoastwebwiz.com/dotnetnuke
 Personal and Business.  www.bestgoldcoast.com/dotnetnuke/wealth

 My latest (unsuccessful) attempt of redirecting to both main and child portals.
Both main portal redirections work fine, while the child portal does not.

<%
If InStr( UCase(Request.ServerVariables("SERVER_NAME")),  UCase("www.goldcoastwebwiz.com") ) > 0 Then
        Response.Redirect("/DotNetNuke")

ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("www.bestgoldcoast.com") ) > 0 Then
        Response.Redirect("/DotNetNuke")

ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("www.bestgoldcoast.com/wealth") ) > 0 Then
        Response.Redirect("/dotnetnuke/wealth")

End If
%>


Cheers


Olle…..

 
New Post
5/7/2007 9:14 AM
 

Hi Olle,

It doesn't work with the child portal because you are comparing the SERVER_NAME variable to a string that contains the SERVER_NAME and path (i.e. /wealth). The comparison will always fail since SERVER_NAME will only contain www.bestgoldcoast.com. If you want to continue to use the code, your best bet is to use Request.Url.AbsoluteUri for the comparison.

There are three other alternatives:

- Create a sub-folder named "wealth" and add a "default.aspx" page that redirects to www.bestgoldcoast.com/dotnetnuke/default.aspx?tabid=XXX where XXX is the ID of a tab on the /dotnetnuke/wealth portal. (you can also use PortalAlias querystring parameter here if you wish).

- Add all these redirections directly into IIS (Easy)

- Add the rules for these redirections into the URL rewriter configuration (Not as easy)

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
5/7/2007 4:23 PM
 

Hi Nik

And THANKS A LOT!!!

I uploded the "wealth" folder with a simple redirect string and it worked right away!!!

Check the URL:   www.bestgoldcoast.com/wealth

Cheers

Olle

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Portal Redirect againPortal Redirect again


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out