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 redirecturl redirect
Previous
 
Next
New Post
7/11/2007 12:19 PM
 

All,

I am using DNN version 3.1.1 and I would like to know how I can redirect a url.  For example I have a portal using the url of www.xxx.com I would like to setup the following

www.xxx.com/somename redirects to www.xxx.com/Default.aspx?tabid=908

Is this possible and how?

Thanks

Msuk

 
New Post
7/13/2007 11:01 AM
 

Hi,

Can anyone please help?

Thanks

Msuk

 
New Post
7/13/2007 11:31 AM
 

3.1.1 doesn't have an interface for Url Redirects, so far as I know, so you'd have to do it manually.  The easiest way would be to create a child portal as xxx.com/somename, but if it isn't desirable to be in a seperate portal you can make use of the SiteUrl redirection.

To do that, open SiteUrls.config in your website's root.  Add another RewriterRule, like this:

        <RewriterRule>
            <LookFor>.*/somename.*</LookFor>
            <SendTo>~/Default.aspx?TabId=908</SendTo>
        </RewriterRule>

However, you also have to make sure that a request to xxx.com/somename gets set to ASP.NET, so that DNN can redirect it.  To do that, you'll have to create a somename folder with a default.aspx in it.  There doesn't need to be any content in the file, it just has to exist so that IIS will see it and give control to ASP.NET.  That should be all that you'll need to do to get your redirect to work.  Note that my LookFor pattern isn't necessarily the most robust, you might want to tweak it a bit, depending on exaclty what input you'd like to accept and reject from the user.

Hope if helps!


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
7/18/2007 6:44 AM
 

Hi I have done this on my site that I am setting up what I did was to create Virtual Directories under IIS that redirect to the URL , Take a look at http://cihc.hockeycoach.co.uk Click on one of the images under the top banner , these link to their respective "friendly URLS" which then get redirected to the proper DNN URL.

If you need any more info then please ask.

 
New Post
7/18/2007 8:50 AM
 

You can also use a third party product such as ISAPIRewrite to do this.  From www.isapirewrite.com.

Jeff

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...url redirecturl redirect


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