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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Removing Port Number from DNN LinksRemoving Port Number from DNN Links
Previous
 
Next
New Post
1/2/2012 6:50 AM
 

Greetings...

I have built a website using the DNN 6 community Edition and am using the iFinity Friendly URL Module to generate friendly urls and remove the .aspx extension. I have hosted the website on IIS 7 on a non-80 port, the links of my website keep showing with port number embedded in them ( ex: www.domain.com:5085/Admin ) . My Question is, is there any way , using the DNN source code or the iFinity source code, to ( remove ) the port number from the links ? I just want the links to appear normal ( without a port number ) . or if there is a way to rewrite the links to hide the port number using the IIS rewrite module.

Note that I am using the Netscalar to manage my server's incoming traffic that gets the URL and redirects it to the specific internal ip with the associated port number based on the URL, so any link with a port number in it cannot be resolved and results in 404 error. Port 80 is already reserved for other application, so I can't use it.

Your kind help in this issue will be much appreciated.

Thanks in advance.

 
New Post
1/2/2012 7:49 AM
 
you may remove port number from the link, if you are using default port (80) for the IIS web site and a host header value instead.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/2/2012 8:31 AM
 

Thank you for you kind reply.

Can you please provide me with an example of how to use a host header value to remove the port number from the links ?

 
New Post
1/2/2012 8:31 AM
 

If you look here (http://programmingsolution.net/post/U...) there is an article on parsing a URL in javascript.

If you combined that with a bit of jQuery to pick up all the anchor tags in the page then you should be able to rewrite all the URL's by using JS in the user's browser.

I think I prefer a solution that is outside DNN.  If you have somthing that is inside DNN then I think it will make it harder to have a separate test version of your site.  For example; you do NOT want a situation where all the links in your test site send you to the live one.

I would think that if the 'Netscalar' (whatever that is) can do the URL translation one way I might expect it to be configurable to do the rest of the job.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
1/2/2012 9:47 AM
 

Thank you for your kind reply.

Mr. Richard, the JS and jQuery solution seems good, I will see what can I do with it, but since there are many js files in DNN, can you please tell me which file should I add the js function in it? should it be in a specific js file or embedded in the default.aspx file ?

Mr. Sebastian, Can you please provide me with an example of how to use the host header value to remove the port number ?

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Removing Port Number from DNN LinksRemoving Port Number from DNN Links


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