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 ...redirects and 301sredirects and 301s
Previous
 
Next
New Post
2/17/2015 12:11 PM
 

Hi friends:

I've been reading articles this morning and I'm a bit more confused on something that I'm wondering if I'm over-thinking.

 I'm doing a new site to replace a legacy site (mysite.com)

 On the old site, there's pages like:

www.mysite.com/Info.html

www.mysite.com/Moreinfo.html

I'd like to be able to configure DNN to perform a permanent redirect (301) to prevent 404s and get people to the updated pages.

for example. I'd like to redirect www.mysite.com/info.html to www.mysite.com/New-Info

 I'm not sure how to go about this. I looked at the DnnUrlManagement Module, but there's no documentation or examples.

I also thought about using IIS URLRewrite and doing it in the web.config.

 

Basically, I don't know what the proper way, the DNN way in 7.3.x + to add these redirections. I've got about 20 redirects to do and I'm not sure what to do.

 

Sorry for such a noob question. But I'd really appreciate it if someone would help me understand how to go about this.

 
New Post
2/17/2015 1:02 PM
 

I figured out a part of this.

The issue was I was using the DnnUrlManagement Module to redirect the explicit url including the .html in the URL to be redirected.

If I use that module to take a page and add a custom URL that is like this:

www.mysite.com/oldpage.html and try to redirect it to www.mysite.com/newpage it throws a 404.

but if i use the module to just redirect oldpage to the newpage (without the .html) the redirect works.

So why does the DnnUrlRedirect throw a 404 when explicitly using oldpage.html? It seems like it's really not doing the redirect on the true page (oldpage.html).

 

 
New Post
2/17/2015 1:07 PM
 

got it. need this in the web.config

 

<add type="System.Web.UI.PageHandlerFactory" requireAccess="Script" preCondition="integratedMode" path="*.html" verb="GET,HEAD,POST,DEBUG" modules="ManagedPipelineHandler" name="HtmlHandler-Integrated" />

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...redirects and 301sredirects and 301s


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