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.0Friendly URLs - Not so friendlyFriendly URLs - Not so friendly
Previous
 
Next
New Post
8/30/2008 1:33 PM
 

I am creating a module which has a charting control imbeded within it.  The charting control is from ComponentArt.  This control renders a chart as an image and writes it to disk, sending back a URL to the browser.  The controls has a property for the output directory which works fine, I can place the image anywhere on my server I want.  The problem I have is that DNN, through Friendly URL rewriting, inserts it's /Profile/tabid/54 information in the URL causing issues with the browser finding the image on the server.  Here are some examples:

Control output directory: Charts
File Located on web server: /DesktopModules/Portfolio/Charts/
URL sent to browser: /Profile/tabid/54/PID/7/Charts

Control output directory: ../../Charts
File Located on web server: /Charts/
URL sent to browser: /Profile/tabid/54/Charts

Control output directory: ../../Portals/0/Charts
File Located on web server: /Portals/0/Charts/
URL sent to browser: /Profile/tabid/54/Portals/0/Charts

I would have thought this last attempt would correct the issue.  I read the document about Frieldly URLs and how DNN rewrites the URL once it comes in, replacing the /Profile/tabid/54 with url parameters, leaving just the /Portals/0/Charts.  If I modify the URL myself in the browser I can load the image just fine.

Am I going about this the wrong way? Do I need to write my own entry in SiteURLs for the Friendly URL rewriting?  Does URL rewriting only apply to outbound URLs? Is there a way from within my module to tell DNN not to rewrite the URL or possibly set an alternate root so the /Profile/tabid/54 is not written?

Please help, if you have an answer GREAT!  If not but you have an idea, please just point me in the right direction.  Thank you very much for reading this post!

Seth

 
New Post
8/30/2008 2:25 PM
 

Update -

I tried creating a SiteUrls.config entry:
.*Charts(.*)  <LookFor>
~/Charts$1 <SendTo>
This does not work, I believe because the URL has already been passed to DNN, which does not serve up the image file. That is done by IIS and by the time the FriedlyURL code is called IIS missed it's chance to simply send the image back to the client.

I turned off FriendlyURLs in host/config and everything works great, however I still need to get this working with FriendlyURLs turned on as I want this site indexed by search engines.

Also, I took another look at the FriendlyURL documentation and saw there is a way for me to implement my own URL rewriter for responses (as opposed to incomming rewritting done in the SiteUrl.config file), however I'm thinking there must be an easier way to get this working as it must be a somewhat common issue.

Thanks again, Seth

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Friendly URLs - Not so friendlyFriendly URLs - Not so friendly


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