Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterCan URL Master clean up Image Links?Can URL Master clean up Image Links?
Previous
 
Next
New Post
1/20/2010 3:21 AM
 

Hi Bruce,

I think I already know the answer to this, but want to double-check.  I have a dozen or so full-page jpeg images on my site that users can view by clicking on a link.  Each image has its own custom link. When they click on the link they see the following:

http://mydomain.com/Portals/0/Abstracts/Image-1.jpg

I would like to get rid of the /Portals/0/Abstracts and simply display

http://mydomain.com/Image-1.jpg

I want to do this to 1) make the URL cleaner and 2) avoid giving out any information on my site's folder structure.  I do not, however, want to store all these images in my root folder.  Can URL Master help with this?  I saw from the following post that you cannot redirect one image to another:

http://www.ifinity.com.au/Products/Support_Forums/forumid/8/threadid/3419/scope/posts

Currently the images do not show up under Page URLs (because they are not pages).  One work around I thought of was to create a page for each image, place the image on the page using the text editor, and then use Page URL to clean up the address of the page.  This seems a bit clumsy and time-consuming.  It will also add a dozen or more pages to my site.  What do you think? 

Thanks,
Chip

P.S. I followed your instructions regarding page extensions and now my site no longer displays .aspx at the end of every URL.  Thanks!!

 
New Post
1/20/2010 1:09 PM
 

Chip - no, you can't rewrite images using the Url Master module.  You would have to go to another rewriting solution for that - something like on of the generic ASP.NET rewriting solutions. The Url Master module is designed to rewrite for DNN pages, and can't do anything with regards to images.

Personally I wouldn't worry about it because it's more likely to slow things up and to cause problems when you add new images.  If you truly don't want your images in a folder that reveals the structure, then put them all in the root directory, or in a custom directory like /i/.  Note that if you do this, the standard image browsing controls in the editors of DNN won't work anymore, because they can't browse out of the 'portal root' - that is, portals/n

 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterCan URL Master clean up Image Links?Can URL Master clean up Image Links?


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

Please note : If you are posting a new thread for the Url Master module, please include the following information where applicable:

- Url Master version

- DotNetNuke version

- Example Url where possible

- If there is an error, please post the full error text and/or stack trace (from the DotNetNuke event log).