Domain mapping

This guide shows how to change or use multiple domain for your Naviga Web site.

Network Admin

This guide requires you to do Network Admin changes. You find Network Admin in the top menu of wp-admin.

Create site with internal Naviga URL

Setting

Description

Example

Site url

Normally set to an internal Naviga URL, based on the product name.

lvr.prod.ew.ew.infomaker.io

Site Title

Should be site heading and may be visible on the site.

Lavender

Site Language

English US

Admin Email

Normally usewordpress@infomaker.se

wordpress@infomaker.se

Find the Site ID

After creating your site you need to make note of your Site ID.

Fastest way to find it is by editing your site and looking at your browser url.

Add the public domain(s)

Add your real public domain(s) in the Domain admin.

Setting

Description

Site ID

From the previous step above.

Domain

Your primary (canonical) public domain.

Something like www.yourdomain.com

Primary

Should be checked if this is the primary public domain for the site. Only one can be primary.

You can add multiple domain mappings, but only one will be used as primary. The non primary domains will redirect to the primary one.

If no Primary domain is set the Site Address URL (example lvr.stage.ew.ew.infomaker.io) will be used as fallback.

DNS

You also need to make sure the domain(s) are pointing to your server IP.

If you are doing this pre production you probably want to add you primary domain to your hosts for testing.

Cache

After you have done changes to this you probably need to flush your Redis Front cache for updates to be visible on all types of devices.

All done!

Example

A site configured like this...

... will give this result

$ curl -I lvr.stage.ew.ew.infomaker.io 
HTTP/1.1 301 Moved Permanently 
Location: http://www.lavender.com/ 

$ curl -I my.oldsite.com 
HTTP/1.1 301 Moved Permanently 
Location: http://www.lavender.com/ 

$ curl -I beta.lavender.com 
HTTP/1.1 301 Moved Permanently 
Location: http://www.lavender.com/ 

$ curl -I www.lavender.com 
HTTP/1.1 200 OK 
... 

All urls will redirect to www.lavender.com in this example.

Last updated