skip main site and go directly to child site

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/17/2010 10:29:50 AM
Gravatar
Total Posts 98

skip main site and go directly to child site

hi,

I have mojo site build with 2 interfaces

  For both interfaces i use the child sites and it can be accesed like http://localhost/en or http://localhost/fr

How can I redirect to /en or /fr without loading default page(default.aspx from parent site).

It's look like an empty page is load and after my page. Is't ok for user view

Who knows please specify in code  because when i see default.aspx.cs code is very dificult and i'm fraid to change something

Thanks, valik

5/18/2010 5:19:06 AM
Gravatar
Total Posts 98

Re: skip main site and go directly to child site

Hello I find the solution for who is interested

I create one new class RedirectHttpModule which implemented interface IHttpModule and add into web.config the new RedirectHttpModule component (in <httpModules> section)

 Next i change init method where i implement my BeginRequest event

  on BeginRequest I get browser language and make simple Redirect to child site

 Hope to helps,

   Valik

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