Forcing preferred hostname on multisite seem not to work

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/8/2014 3:48:48 PM
Gravatar
Total Posts 137
When enough isn't

Forcing preferred hostname on multisite seem not to work

Hi,

I have read this great article about how to control the preferred hostname. It works well in most cases, but I can't get it to work for a childsite in a multi-site installation with hostnames (not folders). Here is the article I refer to: https://www.mojoportal.com/forcing-a-preferred-host-name.aspx

It works for me in these cases:

- Normal site with one installation and one domainname like hostname.com redirects fine to www.hostname.com

- Multisite with one installation and subfolders like hostname.com/en redirects fine to www.hostname.com/en

But here nothing happens:

- Multisite with one installation and hostnames like hostnameofchildsite.com doesn't redirect to www.hostnameofchildsite.com. In fact it redirects shows the homepage of the mothersite like hostnameofmothersite.com, but keeping the url at hostnameofchildsite.com.

Any clues? Is it me or is it a bug? My mojoportal version is 2.4.0.2 MySQL.

Best regards

Lars

7/8/2014 3:56:34 PM
Gravatar
Total Posts 18444

Re: Forcing preferred hostname on multisite seem not to work

sounds like you forgot to add the host name mapping for "hostnameofchildsite.com" to the child site. It is redirecting fine but the host name is not assigned to the child site so the default site is shown. You need both the preferred host name to be set and the host name must be in the host names attached to the child site in the site settings of the child site from Master Site > Administration > Sites click on the child site to get to site settings and add the host name in the host name tab.

7/8/2014 6:52:29 PM
Gravatar
Total Posts 137
When enough isn't

Re: Forcing preferred hostname on multisite seem not to work

Thank you, thank you so much!

I only had the www host mapping in that tab. I added the domain without www and now it works just as it should.

Sorry to bother you - and thank you very much.

Lars

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