301 redirect using IIS7 for multisite installation

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.
4/29/2014 8:01:39 AM
Gravatar
Total Posts 167

301 redirect using IIS7 for multisite installation

I was looking to use IIS for a 301 redirect of one my sites in a multisite mojoportal installation.

This is so that I can redirect sites www.domain.com, www.domain.co.uk, domain.co.uk all to Domain.com.

However once set in HTTP redirect in IIS all other sites under that multisite installation also get directed to the redirect.

Is there any way that we can set just the one instance of an installation to a new 301 redirect.

Cheers

4/29/2014 8:52:11 AM
Gravatar
Total Posts 18439

Re: 301 redirect using IIS7 for multisite installation

If configured correctly I would think IIS could do it correctly but we do have built in support for that in mojoPortal, so you can have mojoPortal do the redirecting, see Forcing a Preferred Host Name

Hope that helps,

Joe

4/29/2014 9:01:45 AM
Gravatar
Total Posts 2239

Re: 301 redirect using IIS7 for multisite installation

Hi,

The IIS HTTP Redirect is going to work on the entire site.

If you want to do this in IIS, you'll need to use the URL Rewriter.

I suggest using mojoPortal's Preferred Host Name feature.

HTH,
Joe D.

5/2/2014 8:03:26 AM
Gravatar
Total Posts 167

Re: 301 redirect using IIS7 for multisite installation

Joe, Joe,

Really very useful information to know. Many thanks.

As more tld's become available this will be very useful.

Also, as Joe A say s in the link, this is very useful for the SSL settings.

Cheers for that, I can now put back the hair I was pulling out.

All the best.

Simon

 

 

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