Today I learned – Multisite mystery signup

Half cloaked signup form

As a part of process of writing in┬ámultiple languages I have set up a multisite. Unfortunately it wasn’t without glitches.

When I have set up my multisite I was accessing SarahGebauer.com through https and www because that’s my default mode as an admin. It surprised me when I saw a box talking about registration instead of my landing page when I used just ‘sarahgebauer.com’ as my access uri.

Unfortunately I have missed a little note in Network Settings which says that you should add ‘NOBLOGREDIRECT’ constant to your wp-config.

Registration settings

It took me a while to find it and figure it out. In my case I had to add a line to wp-config:

This says to WordPress Multisite, that if it can’t find a blog or encounters a non-existent address in general, it has to redirect the visitor to provided website, in my case secure www website.

Unfortunately my .htaccess wizardry skills weren’t up to this challenge this time.

Resources

No Blog? Redirect!

Did you like this article? Are you looking for a front-end developer for you project? Feel free to contact me to see if I can help you or send me an e-mail sarah@sarahgebauer.com.