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 ...Friendly URLs -- how to?Friendly URLs -- how to?
Previous
 
Next
New Post
5/4/2006 8:59 PM
 
I've read what I can (in docs and web) and no luck with friendly URLs.  Joe Brinkman had a post about how to do more or less what I want but it doesn't work for me.

I'm trying to have a human friendly URL like http://www.mydomain.com/deutsch go to http://www.mydomain.com/tabid=123&language=de-DE ... hence this in the siteurls.config:

        <RewriterRule>
            <LookFor>.*/deutsch.aspx</LookFor>
            <SendTo>~/Default.aspx?TabId=56&language=de-DE</SendTo>
        </RewriterRule>

But no luck.  It gives me a 404. 

And I tried just with /deutsch at the end (without .aspx) and created a physical directory and put a copy of default.aspx inside just to try that out -- this just redirected to the home page of the portal ... and not just the portal it was on but the home page of portal 0.  So obviously this isn't the behaviour I want.

Am I missing a trick?

/Brian C
 
New Post
5/5/2006 4:08 AM
 

Something like this worked for me:

        <RewriterRule>
            <LookFor>[^?]*/Blogs/(.*)</LookFor>
            <SendTo>~/Default.aspx?tabid=53&amp;BlogId=33</SendTo>
        </RewriterRule>


and ofcourse I created a physical directory on the system with the copy of Default.aspx (the child portal default.aspx - the one copied into the child portal directory in the root)

hope it helps,


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
5/5/2006 3:51 PM
 
Sadly that didn't help.  I thought perhaps the ampersand was part of the problem but nope.

Any referenced 'aspx' other than default.aspx throws a 404.
Using a physical directory with the default.aspx redirects the request to root of portal 0 (and I'm hoping to modify portal 1).

I wonder why....sigh.

/Brian C
 
New Post
5/6/2006 11:55 AM
 
Heh heh ... siteurls.config must be in the root (don't edit the one in the /config directory)

<doh!>hits self in forehead</doh!>

/Brian C
 
New Post
5/8/2006 3:32 AM
 

Well actually it reads the one in the root.. but if it's not there it copies it from Config to the root.

glad you solved your problem!


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Friendly URLs -- how to?Friendly URLs -- how to?


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