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 ...Creating a www.domainname.com\shortcutCreating a www.domainname.com\shortcut
Previous
 
Next
New Post
11/16/2007 3:31 PM
 

I am fairly new to DotNetNuke.  But what i am wanting to do is create a www.sitename.com\soccer but when you got to the actually website it would be http://www.sitename.com/Ministries/FamilyLifeCenter/Sports/UpwardSoccer/tabid/220/Default.aspx  How is this done??? any help would be much appreciated this is for a church site.

 
New Post
11/16/2007 4:00 PM
 

There are a number of ways to accomplish a redirect like this.

In

location.href= 'http://www.sitename.com/Ministries/FamilyLifeCenter/Sports/UpwardSoccer/tabid/220/Default.aspx';

In VB.Net:

Response.Redirect("http://www.sitename.com/Ministries/FamilyLifeCenter/Sports/UpwardSoccer/tabid/220/Default.aspx")

If the soccer subdirectory is a DNN site, you could add this to the SiteUrls.config file:

<RewriterRule>
    <LookFor>.*www.sitename.com/soccer/.*</LookFor>
    <SendTo>http://www.sitename.com/Ministries/FamilyLifeCenter/Sports/UpwardSoccer/tabid/220/Default.aspx</SendTo>
</RewriterRule>

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
11/16/2007 4:06 PM
 

I should add that the VB.Net example will work with an ASP page as well.  If you are unfamiliar with web design, this is how that page source might look:

<%@ Language="VBScript" %>
Response.Redirect("http://www.sitename.com/Ministries/FamilyLifeCenter/Sports/UpwardSoccer/tabid/220/Default.aspx")

Then save the file as default.asp.  This would be the optimal solution, as the end-user is not required to have JavaScript enabled.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
11/16/2007 4:23 PM
 

You could also add a redirection as a virtual directory (or folder) in IIS.  It has a setting to permanently redirect to another URL.  Additionally, you *could* add that as a site alias to your portal but make sure it isn't the primary alias so what would happen is you hit that, that url is actually mapped (through IIS) to your DNN instance, and because it wasn't the base alias it would change to the base alias.  I have it set up the second way on one of my brother's sites and use the first method for some other things.

**EDIT** I take back the second part... looks like you are wanting to redirect to a specific page.  The first method still holds true.


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Creating a www.domainname.com\shortcutCreating a www.domainname.com\shortcut


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