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 10:26 AM
 

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 11:53 AM
 

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}


These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
New Post
6/24/2008 12: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 6: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.


These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
New Post
6/24/2008 7: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


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.