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 ...URL Rewrite? Friendly URLs? How to?URL Rewrite? Friendly URLs? How to?
Previous
 
Next
New Post
11/10/2006 4:29 AM
 
Hello,
I'd like to add friendly urls to my DNN 4.3.5 portal, so that if a user asks for a page named /PAGE he's redirected to a specific page like /pages/tabid/123/default.aspx.
Can I do this with DNN's friendly URLs? How?

 
New Post
11/10/2006 5:00 AM
 
have a look at this article and this project from Scott McCulloch.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/10/2006 9:18 AM
 
leupold wrote
have a look at this article and this project from Scott McCulloch.


leupold,
thank you, it sure is what I need! Just have to understand how to build my friendly urls, because I get strange results for now.
I tried building a rule such as: redirect requests for /FOO to /mypage.aspx
I configured a friendly URL like this:

*FOO ~/mypage.aspx

But:
  • if I point my browser to www.myportal.dom/FOO I get a 404 file not found
  • if I point to www.myportal.dom/FOO/default.aspx it gets it, but traslates to another page (it redirects me to the home of the portal, but using the primary alias (which is an IP address in this case)

Btw, FOO is  neither an existing folder nor page, it's just a friendly url alias I'd like to publish. mypage.aspx, on the other hand, is an actual page in my portal.



 
New Post
11/10/2006 10:05 AM
 


 

You can't use just a folder name.  You need to use a url that has a file with an extension that is mapped to ASP.Net so that IIS will hand off the request to the Friendly Url handler.

One other way to do this though, is to actually create a physical folder called FOO and put a default.aspx page in it.  IIS will use the default document without having to specify the actual filename that way.


DotNetNuke Modules from Snapsis.com
 
New Post
11/22/2006 11:28 AM
 

On the subject of friendly URL's...

Is there any way to use the SiteUrls.config file to manipulate other url parameters?

My currenty URL would be:

.com/tabid=55&townid=winsford
what I really want is:
.com/taxis/winsford/default.aspx

I know I can just write:
  <RewriterRule>
   <LookFor>.*/Taxis/Winsford/Default.aspx</LookFor>
   <SendTo>~/Default.aspx?tabid=55&amp;TownID=Winsford</SendTo>
  </RewriterRule>

My concern is that I have 1600 towns and I am assuming that adding that many entries into this file must cause some overhead.

Is there a way of saying:
  <RewriterRule>
   <LookFor>[^?]*/Taxis/[Town]/Default.aspx</LookFor>
   <SendTo>~/Default.aspx?tabid=55&amp;TownID=[Town]</SendTo>
  </RewriterRule>

Many thanks

Pete


Aarrgghhh! User Error DNN Version: 4.4/4.5
Websites: taxinumber.com/taxi-today.com
Like DNN? Yes! Very much, congratulations!
Poor eyesight? Yes! Thankyou very much!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...URL Rewrite? Friendly URLs? How to?URL Rewrite? 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