Switch from host name mapping to folder names

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
10/4/2011 8:26:45 AM
Gravatar
Total Posts 18439

Re: Switch from host name mapping to folder names

Hi Debbie,

For folder based sites the first site has to be a root level site so that the url is http://localhost/ or http://somedomain/

not http://somedomain/somefolder/

The files can live anywhere on disk, it doesn't have to be under inetpub\wwwroot, you can point the IIS web site to any folder in basic settings. inetpub\wwwroot just happens to be the default location where the automatically created default web site points to, so if you want to put the files there that is fine. if the files already exist at inetpub\wwwroot\mastersite then just point the default web site to that folder (instead of to inetpub\wwwroot\) and then use the url http://localhost/

note that when you create folder based child sites it does not copy files to a child site folder and the folder does not even really have to exist. The child sites run out of the same files as the master site the urls are done by url rewriting

all the pages in the menu in both master sites and child sites are served by /Default.aspx?pageid=x even though the url you see is like /home.aspx for a root site or /foldername/home.aspx for a child site those are just url mappings, the page id is determined by the home.aspx and in the case of the child sites the siteid is determined by the first folder segment /foldername/ but it doesn't mean files are actually located under /foldername/

See 

Hope that helps,

Joe

10/4/2011 9:01:24 AM
Gravatar
Total Posts 10

Re: Switch from host name mapping to folder names

Joe,

In the process of reading your articles, thanks so much.

The next step is then how do I get rid of the redirect to the the URL with the folder in the path? I can literally get rid of the index.html and set the default root page to default.aspx and I still get the redirect. Also, in the Administration for the Site properties the URL states the folder in the path. Where does this get set to the URL to be a root level URL without the folder?

Thanks,

Debbie

10/4/2011 9:10:18 AM
Gravatar
Total Posts 18439

Re: Switch from host name mapping to folder names

I don't know what you mean by the redirect, mojoPortal does not redirect. The only default document should be default.aspx, all other should be removed and I would even delete the file index.html

When you define a folder based site you specify the folder in site settings for the child site but the master site has no folder mapping so any requests that don't already have the folder as part of the url are handled by the master site.

What you need to do in IIS is delete the application below default web site at /mastersite (this won't delete the files it will just delete the application from IIS)

Then click directly on the default web site in IIS and then on the right side of the screen click "Basic Settings", then for the physical path browse to inetpub\wwwroot\mastersite (assuming that is the folder where the mojoportal files exist, ie the mojoportal web.config file should be in that folder.

Then you will be able to access the master site at http://localhost/

Hope that helps,

Joe

10/4/2011 9:15:10 AM
Gravatar
Total Posts 18439

Re: Switch from host name mapping to folder names

I also recommend that you watch the 2 training videos here, they cover a lot of basics about IIS and will help you understand. The second one is about multiple sites based on host names but it will still help you understand how IIS configuration works and how host name resolution works and that will help you a lot. The videos are less than 10 minutes each and will be time well spent.

Hope that helps,

Joe

10/5/2011 8:57:04 AM
Gravatar
Total Posts 10

Re: Switch from host name mapping to folder names

Joe,

Looked over the videos and read the articles except for How MojoPortal Works. This is still impending. Very good information, thanks. In IIS, from looking over the current settings I see it matches with what I read about in ASP.NET books. It is configured based upon Advanced Settings. The video goes over using Basic Settings. Does the Basic Settings establish root level sites and Advanced Settings establish Web Applications or is this used for something else all together?

When removing the current Web Application in IIS does it in anyway affect the website folder permissions. In that they need to be re-established?

Is there any other IIS configurations that need to be set with the new web site. I noticed currently there are other settings, but they could be set there already by default.

For the database settings currently the mojo login on Development (has a public Server Role, Database role membership is public, does not enforce password policy, and default database is mojoPortal) and a sa login (has a public and svsadmin Server Roles, Database role membership is public and db owner, enforces password policy, and default database is master). For Production the mojo login user (has a public Server Role, Database role membership is public, does enforce password policy, and default database is master) and a sa login (has a public and svsadmin Server Roles, Database role membership is public and db owner, enforces password policy, and default database is master). Does any of these settings need to change and if they do will it impact anything else along with it?

Thanks,

Debbie

 

10/5/2011 1:58:59 PM
Gravatar
Total Posts 10

Re: Switch from host name mapping to folder names

Joe,

Wanted to thank you for your help with switching over to folder names and learning the Installation process. Learned a lot. Sub sites are now viewable. This has been a real good task to learn mojoPortal and am looking forward to working with the CMS.

The Web Site folder permissions did remain and I was able to see there are default settings in IIS.

Next task is to fix the images. They are viewable, but after refreshing the site they no longer exist.

Debbie

10/5/2011 2:38:08 PM
Gravatar
Total Posts 18439

Re: Switch from host name mapping to folder names

Hi Debbie,

Glad to hear you're making progress.

Many thanks for the generous coffee donation! Very much appreciated.

If you already had content with images in the sites before moving it to a root site and switching to folder sites, you may need to edit the content in places where you have images to fix the urls. The images still should be there on disk but you may need to browse for them again using the editor image browser since the relative urls for the pages changed it can throw off the relative urls for images that were created previously under the old url structure.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.