Naviga Web
Docs Home
  • Introduction
  • Release notes
  • Starter kit
    • Introduction
    • Environment Variables
    • Makefile
    • Changelog
    • API
  • Feature: Advanced Search
    • User guide
    • Search Help
    • How to Setup
    • Technical Details
  • Developer documentation
    • Developer prerequisites
      • Developer hardware suggestions
      • Setup on Windows
      • Setup on Linux/Ubuntu
    • Getting started with development
      • Composer package management
      • Gulp and asset building (optional)
      • Git
      • Hosts file
      • Certificate
      • Initiate Naviga Web
      • Start Naviga Web
      • Bin scripts
      • Create theme
      • Environments
      • Deployment
      • Onboarding tasks
        • #0 - New site
        • #1 - Configuration
        • #2 - Front page
        • #3 - Content presentation
        • #4 - OC List
        • #5 - Content containers
        • #6 - Teaser template
        • #7 - Single article
        • #8 - Widget
        • #9 - Custom task
        • #10 - Feedback
    • Architecture
    • Paywall and authentication
      • CloudFront Paywall
      • Engage paywall
      • Lua Paywall (deprecated)
    • Project management: A typical project
    • Database dump
    • Debugging
    • Keep your project up-to-date
    • Gulp and Sass
    • Domain mapping
    • Widgets overview
  • Starter kit packages
    • Base package
      • Changelog
    • Boards plugin (EveryBoard)
      • Installation
      • Setup
      • Board Widgets
        • Linked board
        • Template board
        • Embed widget
        • OC List item
        • Content container
      • Teaser templates
      • Actions and filters
      • Export - import
      • Changelog
    • ContentSync plugin
      • Usage
      • Changelog
    • Drop In Plugins package
      • Changelog
    • Everyware plugin
      • Installation
      • Setup
      • Actions and filters
      • Fetching lists and their content
      • Sorting
      • Widgets
      • Changelog
    • Imengine package
      • Helper class: Imengine
      • Changelog
    • NewsML package
      • Idf Parser
      • Changelog
      • Usage
    • NGINX conf package
      • API
      • Changelog
      • Usage
    • Presentation Preview plugin
      • API
      • Changelog
      • Usage
    • Support package
      • Changelog
    • Theme EU resources package*
      • Changelog
    • Theme US resources package
      • Changelog
    • Twig package
      • Development
        • Filters
          • class_string
          • spacey
          • trim_array
        • Functions
          • php_function
          • php_method
          • render_classes
          • render_partial
        • Operators
          • contains
      • Helper classes
        • View
        • ViewSetup
      • Changelog
  • Widgets and component packages
    • Article List widget
      • Installation
      • Using Article List
      • Changelog
    • Menu handler
      • Usage
      • Changelog
    • Section Header widget
      • Changelog
    • Social media icons widget
      • Installation
      • Changelog
    • Google Analytics plugin
      • Set up Google Analytics
      • Most read widget
      • Changelog
    • Redirect Original URLs plugin
      • Installation
      • Changelog
    • Settings Parameters plugin
      • Installation
      • Usage
      • Changelog
  • Design and theme packages
    • Base theme 1
      • Changelog
    • Base theme 2
      • Colors
      • Fonts
      • Header
      • Menus
      • Pages with Board
      • Sidebars
      • Teaser layouts
      • Article page (text)
      • Article page (embeds)
      • Changelog
    • Example theme
      • Changelog
  • MU Plugins
    • Project Plugin
      • Installation
      • Changelog
    • Starter Package Catalyst
    • Concepts
      • Admin Pages
        • All Concepts
        • Add New Concept
        • Types
        • Errors
        • Concept duplicates
      • API
      • Console
      • Changelog
    • Network
      • Changelog
    • Cache Invalidator
      • Getting Started & WP admin
      • Implementation of Lua endpoint
      • Filters
      • Changelog
    • RSS Feeds
      • Setup
      • Administration pages
      • Changelog
  • Services
    • Imengine
    • Imengine documentation
    • Open Content
    • Writer Bookmarklet
Powered by GitBook
On this page
  • Network Admin
  • Create site with internal Naviga URL
  • Find the Site ID
  • Add the public domain(s)
  • DNS
  • Cache
  • Example
  • A site configured like this...
  • ... will give this result

Was this helpful?

  1. Developer documentation

Domain mapping

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

PreviousGulp and SassNextWidgets overview

Last updated 3 years ago

Was this helpful?

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

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.

This example site has Site ID 4

From the above.

previous step