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 ...SubWeb Detect Re-directSubWeb Detect Re-direct
Previous
 
Next
New Post
7/12/2006 5:30 AM
 
Hopefully somebody can help me

I have 2 domain names registered, domain1 and domain2.
Domain2 points to domain1 which is a DNN site

I would like to detect if somebody has got to domain1 using domain2 url then redirect them to a subweb within domain1

I have tried editing Default.aspx and adding the following;

<%
'Use the request serverVariables to get the address they typed in their browser
if Request.ServerVariables("SERVER_NAME") = "www.domain2.co.uk" then
Response.Redirect("domain2/default.aspx")
end if
%>
This doesn't give an error but also doesn't redirect.
I have used it on another site without any problem
Also, if i try going directly to the subweb www.domain1.co.uk/domain2/Default.aspx it doesn't load, it goes to the default page of domain1, so i think it is something to do with DNN

Hope this all makes sense and somebody can point me in the right direction?

Thanks

Colin

 
New Post
7/13/2006 4:09 AM
 
This problem may be to do with the fact I cannot manually go to any sub folder within DNN, eg http://localhost/EditModule.aspx or http://localhost/colinmcadam/Default.aspx

When i try this, all responses are sent back to the default page in DNN

Can anybody tell me where this is controlled?

Thanks

Colin
 
New Post
7/13/2006 5:15 PM
 

Im trying to do something similar...see this post

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/108/threadid/48217/scope/posts/Default.aspx

I havent found a solution yet.

If your trying to used DNN in both cases you can use domain aliases in the portal settings.  If not your in the same boat as me.   I am trying to find out how to solve this.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SubWeb Detect Re-directSubWeb Detect Re-direct


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