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.0I need help with a moduleI need help with a module
Previous
 
Next
New Post
2/15/2007 1:47 PM
 

I am not 100% sure on this as I haven't tested it but this should work.

Look for: .*/mypage/(.*)
SendTo: ~/mypage/tabid/154/default.aspx?parameter=$1

 


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/15/2007 1:48 PM
 
NOTE: that is assuming that the root was the domain name....if myPage is the root remove it from the send to.

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/15/2007 7:30 PM
 
That doesn't work.  :>(

Would you have any suggestions as to how to debug this?  Is there any way that I can see the re-written URL?



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
2/16/2007 3:09 AM
 

I've used this in the past, it's a very similar example as you need:

<lookFor>[^?]*/Blogs/someUsername/(.*)</lookFor>
<sendTo>~/Default.aspx?tabid=xx&BlogId=yy</sendTo>

If you have blog id in the url above:

http://www.something.com/Blogs/vladan/Default.aspx

it translates it to:

http://www.something.com/Default.aspx?tabid=xx&blogid=yy


and another rule:

<lookFor>[^?]*/Blogs/(.*)</lookFor>
<sendTo>~/Default.aspx?tabid=xx</sendTo>

which:

http://www.something.com/Blogs/Default.aspx

translates to:

http://www.something.com/Default.aspx?tabid=xx


if you will please notice the "Default.aspx" at the end, if you don't have a physical directory called Blogs on the disk, which has a child portal default.aspx page, you will have to have default.aspx (or any .aspx page name) at the end... simply because if you don't have the directory, IIS doesn't know where to map that request (to which handler, aspx or not).

So, either... you create for every sub url a physical directory, and copy the child portal Default.aspx (think of how child portal creation works... it wouldn't work either without putting "Default.aspx" in the url if it didn't create that directory in the web root) and then you can call both:

http://www.something.com/Blogs/Default.aspx
http://www.something.com/Blogs/

or use just the rules, and you can only call:

http://www.something.com/Blogs/Default.aspx


I hope this is clear enough (I am writting it before my coffee :))

 


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
2/16/2007 1:24 PM
 
I can't get this darned thing to work.  So I decided to try something simpler.  I can't get that to work either.  Here it is.

The page that I want to get to is

                 http://www.stockcentral.com/Administration/StockLandingPage/tabid/155/Default.aspx

My rewrite rule is

                 Match:  .                */stocks/Default.aspx

                 Replace with:        
~/Administration/StockLandingPage/tabid/155/Default.aspx

But, if I try to browse to http://www.stockcentral.com/stocks/Default.aspx I get sent to the site's home page.

What now?



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0I need help with a moduleI need help with a module


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