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/24/2008 9:34 AM
 

Then the LOOKFOR rule needs a little touch-up.  I just wrote that as a first draft without any checking.  For really getting RegEx right, you need to use a tool like RegEx Buddy (not free, but it is the best out there and cheaper than it could be), The Regulator (open source, buggy, and abandonded, but otherwise does the job fairly well), or RegEx Lib (free online regex validator).


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/25/2008 3:34 AM
 

Thanks for all the help allready, but it still doesn't work.

I used the tool "Regex Buddy", i generated a regex that is tested and works.

But still when I insert the expression in the siteurls.Config: no result.

Do I need to change something in the web.Config or the dotnetnuke host/portal settings?
Install a third party url-rewriter? I have turned human friendlyurls on, can that be a problem?

Greetz

 
New Post
6/25/2008 8:09 AM
 

FriendlyURLs should indeed be enabled for this to work.  That's fine.  I am glad you used RegEx Buddy.  That is a great tool.  Let's get back to the actual problem though...

When you say "no result", what does that mean?  Are you redirected to the home page?  Are you faced with a 404 error?  What happens?


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/25/2008 10:00 AM
 

I still get the 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

 

My siteurls.Config file now looks like this:

<RewriterConfig>
   <Rules>
        <RewriterRule>
             <LookFor>.*/DesktopModules/ArticleDetail\.aspx.+itemid=(\d+).*</LookFor>
             <SendTo>~/Default.aspx?TabId=69&amp;ArticleID=$1</SendTo>
        </RewriterRule>
   <Rules>
</RewriterRule>

Greetz

 
New Post
6/25/2008 8:54 PM
 

This will work.

    <RewriterRule>
      <LookFor>.*ArticleDetail\.aspx.*(itemid=(\d+)).*</LookFor>
      <SendTo>~/Default.aspx?tabid=69&amp;ArticleID=$1</SendTo>
    </RewriterRule>

However, if the original URL contains the MID querystring value, DNN will react to it and not display the page properly.

I should add that I used to be able to explicitly specify the URL (instead of using the tilde ~), then the rewritten URL would completely replace the original.  I just tested this on a 4.08.03 install and it didn't do it, but the rewrite still took place.  Here is an example of what I am talking about.

    <RewriterRule>
      <LookFor>.*ArticleDetail\.aspx.*(itemid=(\d+)).*</LookFor>
      <SendTo>http://www.YourDomain.com/Default.aspx?tabid=69&amp;ArticleID=$1</SendTo>
    </RewriterRule>

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
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