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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


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
1332 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
1332 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.

 


BataviaSoft DotNetNuke Solutions
BataviaSoft offers custom DotNetNuke solutions especially for the European and the South East Asian market.
www.bataviasoft.com
Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com
DNN Photo Gallery
DNN Photo Gallery is a truly unique photo management module released January 1st 2006. With DNN Photo Gallery you can REALLY integrate images into your existing portal and make them look like they were designed for your site.
DNN Photo Gallery

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