HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...Making my new site publicMaking my new site public
Previous
 
Next
New Post
6/2/2008 11:00 PM
 

Jeff Cochran wrote

You can't do as you ask.  You can put a reditrect file in your root that redirects request to the DNN folder, but that's about it.  The start of the DNN application is at www.MyWebsite.com/DNN.  You have to get to that subfolder to use DNN.  A redirect will simply take the URL without the /DNN folder and redirect to the URL with the /DNN folder.

The proper way to do this is to install DNN in the root of the web site.  Yes, it's not in the documentation.  It should be.  It is in many of the walkthroughs.  The installation docs need a lot of clarifying and redoing, and developers tend not to think in the same terms as normal people.  :)

Jeff

Hi Jeff,

First of thanks for your replay.

There should be some way to get the DNN website directly using www.MyWebsite.com, without typing DNN in URL and without changing the IIS pointer.

There is key name HostHeader in web.config <appSettings> section with comment as below. The comment is placed by the DotNetNuke (Might be placed by Shaun Walker).

<add key="HostHeader" value="" />
<!-- Host Header to remove from URL so "www.mydomain.com/johndoe/Default.aspx" is treated as "www.mydomain.com/Default.aspx" -->

Can you please explain me what is the meaning of this comment? What will be the value="?????" ? and will I require to do any settings in IIS?

Thanks,
Mahesh

 
New Post
6/7/2008 5:19 AM
 

Hi Jeff,

Any comment on this?

Regards,
Mahesh

 
New Post
6/8/2008 10:50 AM
 

Mahesh K. Anjani wrote

There should be some way to get the DNN website directly using www.MyWebsite.com, without typing DNN in URL and without changing the IIS pointer.

This is due to the way web site processing works.  IIS has a root for the site, which in your case is pointed to the directory that www.mywebsite.com points to.  DNN is installed in a subdirectory of the root, in your case the DNN subdirectory.  To access files in this subdirectory, you have to include the subdirectory.  End of story.  It's the same no matter what you have on a web site, whether DNN or any other app or even a HTML, PHP or ASP Classic file.

You have three options.  The first is to point the root of IIS one directory lower in the file folder hierarchy, to the DNN folder.  Then your site is accessed as www.mywebsite.com directly to the DNN installation.  The second method is to reinstall DNN to the root folder that IIS points to for the site.  And the third is to forward the page.  This results in a request to www.mywebsite.com being redirected to www.mywebsite.com/DNN, as if the user had typed that directly.  The DNN subfolder will appear in the URL.

You can run circles around this with rewiting apps, but the end result is always that the app is in the DNN subfolder and always will be.  Just as if you want to access something in the Windows folder on your C: drive, you can't type c:\ and get there.  You must include the subfolder.  Same on a Linux system with Apache, an IBM with Websphere or a BEA server.  It's the same across the known world.

Jeff

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...Making my new site publicMaking my new site public


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.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.