Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  One IP address and several domains on one install of DNN on the server
Previous Previous
 
Next Next
New Post 7/12/2008 12:12 PM
User is offline Will Strohl
1327 posts
www.strohlsitedesign.com/
6th Ranked


Re: One IP address and several domains on one install of DNN on the server 
Modified By Will Strohl  on 7/12/2008 3:15:10 PM)

Due to your DNN version, you will need to look to 3rd party vendors for the Url Rewriting functionality, or just try adding the UrlRewriter httpmodule from a newer DNN install.  However, the results of adding it (in bin, and web.config) may not be as expected.  Since your version is so far back, you may need to write your own UrlRewriter based on the current DNN one.  (It is not as hard as it sounds - mostly copy and paste, then fix compile errors until they are gone.)

The regex in newer DNN installs will work.  The RegEx looks for the URL matching anything that has "/DNN/" in the path.  However, it should be ammended to optionally look for the trailing slash, and the replace should include the trailing slash.

(.*)/DNN/*(.*)
$1/$2

That will catch any URL with the DNN path in it, and using the groups property of the regex class, recreates the same URL with the $1 (second) and $2 (third) groups.  So to explain further, here is your match goups:

$0 = http://www.domain.com/DNN/Home/SomePage/tabid/123/Default.aspx
$1 = http://www.domain.com
$2 = Home/SomePage/tabid/123/Default.aspx
$1/$2 = http://www.domain.com/Home/SomePage/tabid/123/Default.aspx

Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  One IP address and several domains on one install of DNN on the server
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -
Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting
Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP