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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Syntax definitions for Friendly URL rules?Syntax definitions for Friendly URL rules?
Previous
 
Next
New Post
1/19/2009 1:07 PM
 

I have been searching for syntax definitions for rules of the DNN 4.7+ Friendly URL feature but can only find the user manual post with very basic information on adding and deleting rules. What is \d? Are there other switches? What are they? What is the proper way to include them (\d+)?

Is there some more detailed Host documentation that I am missing?

 
New Post
1/19/2009 4:35 PM
 

Friendly URL rules are defined as Regular Expressions.  This is a very powerful, but very complex, language for defining patterns in text.

To learn and test out some rules, I would suggest downloading a regular expressions editor/tool.  RegexBuddy is a favorite but costs about $40.  For just starting out, I'd recomment trying out Expresso.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
1/19/2009 4:40 PM
 

I guess to answer your direct question and given a small tutorial, \d is the code for a digit (0-9).  The + after it means "one or more."  so \d+ is one or more digits, i.e. a number with an unlimited amout of digits.

Similarly, * means "zero or more," while ? means "zero or one."  \w means "word character (A-Z, a-z, 0-9), \s means a whitespace character (space, tab, etc), and * means any character.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
1/25/2009 2:19 AM
 

Thanks for the info, and perhaps you can answer an even more direct question: How do I write a rule for this?

Change:
www.<mysite>.com/<dnnfolder>/<pagename>/tabid/<num>/Default.aspx

To:
www.<mysite>.com/<pagename>

I believe that the dnnfolder can be cut out of the equation be redirecting my URL via the host control panel, but I wanted to strip the "tabid/123/Default.aspx" out of the URL if possible, or at least shorening and simplifying it more.

Thanks!

 
New Post
1/26/2009 11:35 AM
 

It looks like you're wanting to use a Human Friendly URL rewriter.  If you just want to create a simple link for a single page, you can set that up using a URL Rewrite rule, but if you want this scheme for your whole site, look into using a new Friendly URL Provider altogether.

To write a single rewrite page, you could use a rule like MATCH: ".*/promo1" REPLACE WITH: "~/Default.aspx?tabid=155"

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Syntax definitions for Friendly URL rules?Syntax definitions for Friendly URL rules?


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