Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  URL Rewriting
Previous Previous
 
Next Next
New Post 6/23/2008 9:26 AM
Unresolved
User is offline ThunderHorn
12 posts
10th Ranked


URL Rewriting 

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 10:53 AM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: URL Rewriting 

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 LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 6/23/2008 11:51 PM
User is offline ThunderHorn
12 posts
10th Ranked


Re: URL Rewriting 

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 5:48 AM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: URL Rewriting 

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 LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 6/24/2008 6:21 AM
User is offline ThunderHorn
12 posts
10th Ranked


Re: URL Rewriting 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  URL 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.

 


DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com
Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au
Softech Development, Inc.
We help your business work smarter with DotNetNuke. Whether you need a new implementation, a custom module or skin for an existing implementation, or integration with your business processes, Softech has the experience and expertise to make it happen.
www.softechdevelopment.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP