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  |  

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


  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


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
1333 posts
Orlando.DotNetNukeUG.Net/
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.

 


Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com
DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com

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