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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


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 1:12 PM
User is offline Will Strohl
1381 posts
www.WillStrohl.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
DNN Training Videos | 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.

 


Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net
WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca

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