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...Language and In...Language and In...Language Switching using URL parameterLanguage Switching using URL parameter
Previous
 
Next
New Post
3/6/2014 4:22 PM
 
AFAIK it's a context.rewrite not a response.redirect so those two elements are the two you need (e.g. you can see it in operation by seeing mysite.com/login.aspx being processed)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/10/2014 7:00 PM
 

Hi,

The siteurls.config can generate a redirect or a rewrite depending of the content of SendTo.

If it start with ~/internalurl , it do a rewrite otherwise yu have to put absolute url for a redirect.

siteurls.config is also 1 direction solution , it dont affect the link generation by dnn. For this you need a real url rewriter & provider.

 

Regards,

 
New Post
3/17/2014 2:59 PM
 

Thanks for your reply. Correct me if I'm wrong, but I think in the core code, it strips the URL parameters before matching it with the regular expression.

 If I try to do this, it doesnt recognize it and doesnt work.

 

<LookFor>(.*)Language=en-CA</LookFor>
<SendTo>$1lang=en-CA</SendTo>

 
New Post
3/18/2014 8:02 AM
 
You can try doing this with an IIS rewrite rule instead (since that will take place before DNN will ever touch the URL)

Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Language Switching using URL parameterLanguage Switching using URL parameter


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