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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Using SiteUrls.configUsing SiteUrls.config
Previous
 
Next
New Post
8/24/2006 11:02 PM
 
Heya,

Could somebody please help me with the rewrite syntax contained in SiteUrls.config?

I'm trying to change this:

http://domain.com/i/115

into something like this

http://domain.com/tabid/54/imageid/115/Default.aspx

Anybody have any idea on what I would change in the following?

        <RewriterRule>
            <LookFor>[^?]*/TabId/(\d+)(.*)</LookFor>
            <SendTo>~/Default.aspx?TabId=$1</SendTo>
        </RewriterRule>

Thanks!!
 
New Post
8/25/2006 1:20 AM
 
I'd be interested in some documentation, or a link to a blog or something like that, on this as well. 


Shane Miller
Call Centers 24x7
 
New Post
8/25/2006 1:46 AM
 

 

First, the Url Address has to have an extension on it that will be recognized by IIS as something that should be handed off to ASP.Net

If you make the Url something like http://domain.com/i/115/Image.aspx

Then the rewrite rule would be:

  <RewriterRule>
            <LookFor>[^?]*/i/(\d+)/.*</LookFor>
            <SendTo>~/Default.aspx?TabId=54&amp;Imageid=$1</SendTo>
</RewriterRule>


DotNetNuke Modules from Snapsis.com
 
New Post
8/25/2006 11:43 AM
 
John Mitchell wrote

 

First, the Url Address has to have an extension on it that will be recognized by IIS as something that should be handed off to ASP.Net

If you make the Url something like http://domain.com/i/115/Image.aspx

Then the rewrite rule would be:

 
            [^?]*/i/(\d+)/.*
            ~/Default.aspx?TabId=54&Imageid=$1



Is there any way to not have the Image.aspx at all?  The goal is to have a tiny URL so I was hoping ReWrite would allow me to match a unique string (http://domain.com/i/115) and cut all the .aspx and stuff.
 
New Post
8/25/2006 12:02 PM
 
Thanks JM - I got it to work but I had to define an application extension in IIS.  Is there a way that you know that this could be accomplished withing an application extension?  So instead of http://domain.com/115/image.aspx  it would be http://domain.com/115   ?

Thanks all :)
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Using SiteUrls.configUsing SiteUrls.config


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