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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...A question about RedirectionA question about Redirection
Previous
 
Next
New Post
5/9/2007 5:51 PM
 

I have a working website with DNN 4.1.1 .. currently it is working on a .com domain . Now I've registered another domain name with .net for the same site. what I want is when somebody access the site with .net domain it should redirect to the .com domain and rest of the site should work from there.

what shall I do for that.. do I have to do something in SiteUrls.config ???

I have no idea.. please help me in this regard

Thanks in advance

 
New Post
5/9/2007 8:33 PM
 

Well, if you have the host header of the second domain (.net) in IIS but don't add the portal alias, all requests should automatically be routed to the primary portal alias (.com).

I think you may be able to use FURL's, but I am not sure how you would configure it.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
5/9/2007 8:43 PM
 

 

Using the wildcard feature of the Portal Alias is probably not the way you want to go.
It causes a 302 "temporarily moved" redirect which is not good for SEO.

Here is another way:

301 Redirects in DotNetNuke


DotNetNuke Modules from Snapsis.com
 
New Post
5/10/2007 7:04 AM
 

Thanks for the help crispy and john

@ John: can u plz give an example of that code according to my scenerio. I registered on snapsis site and tried to post there but that form for reply has some errors .. so i'm posting my question here.

Thanks in advance!

 
New Post
5/10/2007 9:42 AM
 

< s cript runat="server">
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
      If Request.Url.Host.ToLower().EndsWith(".net") Then
        Response.Status = "301 Moved Permanently"
        Response.AddHeader("Location", Request.Url.Scheme & "://" & Request.Url.Host.Replace(".net",".com") & Request.Url.PathAndQuery)
        Response.End
     End If
End Sub

< /s cript>


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...A question about RedirectionA question about Redirection


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