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 ...URL Redirect to internal pageURL Redirect to internal page
Previous
 
Next
New Post
7/20/2007 5:10 AM
 

Thanks , I read that article but could not make head nor tail of it . Perhaps I need to clarify clearer what I need to happen.

If someone enters the Site using www.chelmsfordihc.com then I want them to use the normal DNN homepage however if they enter the site using www.chelmsfordwarriors.com then I want them to be redirected to http://www.chelmsfordwarriors.com/tabid/60/Default.aspx , Both of these are setup as http aliases on the same site.

So what would I need to put into my SiteUrls.Config to make this work if it is at all possible ?

Thanks.

 
New Post
7/20/2007 12:21 PM
 

This should work:

    <RewriterRule>
      <LookFor>.*?www\.chelmsfordwarriors\.com</LookFor>
      <SendTo>~/Default.aspx?tabid=60</SendTo>
    </RewriterRule>

I do something just like that here:

http://www.dotnetnukeskins.com

The above Domain is actually being rewrriten to a tab on http://www.snapsis.com

 


DotNetNuke Modules from Snapsis.com
 
New Post
7/20/2007 7:38 PM
 

John,

Thanks for all your efforts on this subject.  I am using the siteurls.config file to redirect a domain to a specific page on my site.  It's working too well - it redirects everything with the domain name to that page regardless of the other link information.  More specifically, I am redirecting:

www.kerrshops.org to
Default.aspx?tabid=30

I have added the following rule to my siteurls.config file:

  <RewriterRule>
   <LookFor>.*kerrshops.org.*</LookFor>
   <SendTo>~/Default.aspx?tabid=30</SendTo>
  </RewriterRule>

How can I change the settings to have only www.kerrshops.org go to the redirect page and allow all other links to proceed to the page as defined in the application?  I have tried taking out the .* at the end, but then the redirect does not work at all.

Thanks in advance for your help.

Craig

 
New Post
7/21/2007 9:06 AM
 

You can use the following rule to add the querystrring variables

    <RewriterRule>
      <LookFor>.*?kerrshops\.org(/Default.aspx[\?]?(.*))?</LookFor>
      <SendTo>~/Default.aspx?tabid=30&amp;$2</SendTo>
    </RewriterRule>

The above rule is not perfect though, because it will "double-up" the tabid if that is passed. At that point you probably shouldn't be using a rewrite rule though since DNN allready allows more than one domain to be pointed at the same portal.


DotNetNuke Modules from Snapsis.com
 
New Post
7/23/2007 7:38 AM
 

Thanks John for all your input the first example you gave earlier I still could not get to work , however this one seems to work a treat !!

So now if you go to www.chelmsfordwarriors.com It hits their home page off of the main site.

Thanks for everyones help in this now I can get on and build the rest of the site.

Dave.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...URL Redirect to internal pageURL Redirect to internal page


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