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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...GoDaddy - Redirection to the Portal from the Host Root.GoDaddy - Redirection to the Portal from the Host Root.
Previous
 
Next
New Post
10/27/2007 1:28 PM
 

One of the issues in installing DNN at GoDaddy is that you must put the installation in a subdirectory of the host root or ASP.net does not get the required permissions.  This leads to the question of how it is best to redirect.  GoDaddy suggest a meta tag refresh.  Previously in this forum I discussed the use of a default.aspx file in the host root using response.redirect (I still think server.transfer would be the better method but can't get it to work).  Here I would like to discuss the behavior of DNN when using a meta tag refresh with multiple portals.

Suppose I have one host space/domain name and three portals under DNN - wholesale.x.com and retail.x.com and www.x.com.  I configure DNS and the host at GoDaddy for the portals.  (I used parent portals instead of child portals so the browser would display a more "friendly" url to the user.)  If as GoDaddy suggests - I then use a meta tag refresh I get the following behavior.

If I type www.x.com it triggers the redirection and the url in the browser displays www.x.com/portal.

If I type wholesale.x.com or retail.x.com it triggers the redirection and the url in the browser displays www.x.com/portal (the wrong portal).

If I type wholesale.x.com/portal it triggers the redirection and the url in the browser displays wholesale.x.com/portal (the correct portal).

If I type retail.x.com/portal it triggers the redirection and the url in the browser displays retail.x.com/portal (the correct portal).

This behavior does not occur when using response.redirect (typing wholesale.x.com, retail.x.com or www.x.com takes you to the correct portal).  I posted the complete code for a default.aspx previously (don't leave any other files in the host root except maybe a web.config for debugging).  One other thing, a 301 response.redirect is SEARCH ENGINE FRIENDLY. One of the bigger problems meta tag refresh has is that it is a common spam technique. Some people suggest setting the meta refresh to at least 5 seconds to avoid any ranking penalty, but with meta tag refresh Google will still show the URL of the original page in the search results if it has a higher PageRank than the location of the destination page.  A 301 redirect is a permanent change of location code. It tells a search engine spider that a page or website has permanently moved and to record the new location.

<script runat="server">
    Sub Page_Load(ByVal Source As Object, ByVal E As EventArgs)
        If Not IsPostBack Then
            Response.Status = "301 Moved Permanently"
            Response.Redirect("~/portal/default.aspx", True)
        End If
    End Sub
</script>

 
New Post
12/28/2010 8:28 PM
 
If my site is in a folder called "site" how do I get my url to not be www.mydomain.com/site/Home.aspx? I prefer it display as www.mydomain.com/Home.aspx. I can edit the web.sitemap in a simple ASP.NET site, how do you do it for a dotnetnuke? (I have a godaddy hosting account.)
 
New Post
12/28/2010 9:30 PM
 
Found the solution here:
http://www.markjohnsonblog.com/2010/02/22/godaddy-hosting-point-primary-domain-to-dnn-install/

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...GoDaddy - Redirection to the Portal from the Host Root.GoDaddy - Redirection to the Portal from the Host Root.


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