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...DNN URLDNN URL's
Previous
 
Next
New Post
7/17/2007 9:29 AM
 

Hi, 

 

I have a question about the Url shown in the browser address line. When you click a page in the DNN menu this changes to something like http://SomeDomaim.com/MyPage/tabid/58/Default.aspx. However, the actual virtual IIS path to files in the portal folder would still be http://SomeDomain.com/Portals/0/. Is that correct? Does IIS know anything about http://SomeDomaim.com/MyPage/tabid/58/Default.aspx?

 

Thanks,

G. M.

 
New Post
7/17/2007 10:18 AM
 

DNN has a feature called Friendly URLs. It is used to make DNN native url that looks like yoursite.com/Default.aspx?tabid=123 to something more readable/useable/recognizable/SEO friendlier, etc. You can turn it on/off on Host Settings. This technique is known as URL rewrite.

This is not unique to DNN - there are plenty of discussions all over the net on it - ever wonder how's some sites have a "unique" page for every product they sell - and they sell thousands of them? That's one way URL rewrite is used.

Ventrian.com has a modification of the core URL rewrite and a good discussion about it. Go and see it there.


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
7/17/2007 12:55 PM
 

vitkoz wrote

DNN has a feature called Friendly URLs. It is used to make DNN native url that looks like yoursite.com/Default.aspx?tabid=123 to something more readable/useable/recognizable/SEO friendlier, etc. You can turn it on/off on Host Settings. This technique is known as URL rewrite.

This is not unique to DNN - there are plenty of discussions all over the net on it - ever wonder how's some sites have a "unique" page for every product they sell - and they sell thousands of them? That's one way URL rewrite is used.

Ventrian.com has a modification of the core URL rewrite and a good discussion about it. Go and see it there.

Thanks for the quick answer. I don’t have at detailed knowledge of URL rewrite but I think I understand the basics from reading the section in the Pro DNN 4 book that deals with it. I wanted to make sure I understood where a web server like IIS fits into the picture. My understanding is that if you want to find a file in the web site hierarchy you need to always look for it using the virtual IIS path, i.e. http://SomeDomain/Portals/0/ or whatever the portal folder number is if your files are in that folder. That’s correct right?

 

Why do I ask? I am having trouble with an Adobe Flash photo gallery. It works fine until I click a DNN page and get a friendly URL. I thought maybe the gallery was getting confused but it always gets the http://SomeDomain/Portals/0/ path to look for the photos which is where they are located. The Flash movie is on the home page. If I get there by the main domain it always works. It is only when I move around with the DNN menu and go back to home that it stops working. Although the paging precedes the problem, it appears to be something other than the path that makes the Flash gallery stop working. Do you agree?

 G. M.

 

 
New Post
7/17/2007 4:42 PM
 

First of all, turn off the Friendly Url setting and see if the stuff will start working correctly.

Second, IIS is kind of irrelevant here. IIS will be asked to serve up the Default.aspx page from the DNN root folder. And all the extra paramters will e organized into a regular Query String. Friendly URL re-write occurs before this activity takes place.

So, your issue is likely to be incorrectly (for this scenario) set up relative paths. Imagine you have a page with Gallery on it. Let's say that is waht it is called, too. Your Friendly URL may look like http://www.yoursite.com/Gallery/Default.aspx Now, say you want to have your images in the images folder on the root show up on the page. If you would link to it like src='images/spacer.gif', what will happen is it'll try to link to http://www.yoursite.com/Gallery/images/spacer.gif which obviously does not exist. So, you would have to add "/" in front of that link.  So to avoid this, DNN has method DotNetNuke.Common.ResolveUrl("~/Portals/0/MyAdobeFolderWithImages/Image1.gif") to resolve it.

That's just one example. I would have to look at exactly what it is you have in order to give more direct answer.


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
7/17/2007 9:37 PM
 

Thanks for the help. Here is the link – www.dev.iatse476.org. I’ll certainly try to turn off the friendly URL process. Is that done by setting includePageName=”false”? I tried that on a duplicate site on my local machine but it didn’t seem to work. The following will explain what is going wrong.

 

I apologize in advance for the length of this dissertation. I am not sure this is a straightforward problem with the DNN URL rewrite process because this site is a combination of an ASP.NET application (DNN) and a fairly sophisticated Adobe Flash movie.

 

Flash is executed within the Adobe Flash Player on the client machine. However, it is obvious that DNN is somehow implicated in a malfunction within the Flash movie. Note that I am displaying test data at the bottom of the movie. This data is all coming from the Flash movie not from DNN. Follow the procedure below and you will see the malfunction.

 

First if you click on the Photo Gallery button watch it for a few seconds then click various other buttons on the movie and go back to gallery, everything works fine. You will see the URL and the number of photos plus other info that shows various internal variables in the gallery ActionScript code as the gallery slide show runs. ActionScript is Adobe’s Flash programming language (looks a lot like C). There are only three DNN buttons. If you log into the site there are more but you don’t need to do that. Just use Reset in the upper right above the Flash movie. It will just reinitialize the home page and produce the rewritten URL. Now click the Photo Gallery button on the Flash movie. It won’t work although the URL and even the number of images is the same. 66 images is the correct number. The URL that I am displaying comes from a global Flash variable called _url. It is automatically defined by Flash. It is described in the ActionScript 2.0 documentation as: “Retrieves the URL of the SWF file” This ActionScript statement will display it: trace(this._url);

 

From the test information I know that the Gallery ActionScript code begins to execute. It appears to load a standard XML object otherwise the number of images would be undefined. What it fails to do is begin the slide show loop. The mystery is, why? At this point I don’t have a clue. If you have any ideas, let me know.

 

Thanks,

G. M.

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN URLDNN URL's


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