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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0URL RewritingURL Rewriting
Previous
 
Next
New Post
6/23/2008 12:26 PM
 

Hello,

I am converting a site built on the ASPNETPortal CMS System, to the DotNetNuke system.

We have over 4000 articles on our old website and we would like to keep them.
So I am changing the siteurls.config file and adding extra rules.

On our old site an url to an article would be: http://www.guido.be/desktopmodules/articledetail.aspx?mid=xxx&itemid=yyy&pageid=zzz&tabid=qqq
These pages should redirect to http://www.guido.be/default.aspx?tabid=69&articleID=yyy

So i tried adding a rule, but none seem to work.

Can someone help me please?

 

 
New Post
6/23/2008 1:53 PM
 

It would have been helpful to see what you tried, but it looks like this should work:

LOOKFOR
.*/articledetail.aspx.+itemid=(\d+)&.+

REPLACEWITH
~/Default.aspx?tabid=69&articleID={1}


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/24/2008 2:51 AM
 

Doesn't seem to work.

At first i got error-messages concerning the "&"-sign.
I replaced it with "&" but still doesn't work.

I get following error:

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /dotnetnuke/desktopmodules/articledetail.aspx

I Guess this means that the lookfor rewriterrule isn't working well.

 
New Post
6/24/2008 8:48 AM
 

Is it possible that you have switched the rules to the wrong places?  The error states that the wrong URL was requested.  My example shouldn't be requesting that URL - it should only be looking for it.  However, it is possible that IIS is throwing that error.  Do you have a page in that directory named "articledetail.aspx"?  You shouldn't need one, but if you continue to get this error, and everything is in the places that it should be, I would suggest putting a blank page there of the same name just to make sure it is not IIS throwing this error before the web app gets control.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/24/2008 9:21 AM
 

The page "articleDetail.aspx" was used on the previous site.
Now it wasn't necessary anymore because everything is loaded on to the default.aspx page.

Now i've put an articleDetail.aspx page in the correct folder, and he opens that page.

Looks like he doesn't accept the lookfor rule in de siteurls.config file.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0URL RewritingURL Rewriting


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