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
  • Staying on search engines
  • Map old URLs in article metadata
  • Setting up the plugin
  • If you have had multiple domains
  • Test and development
  • How to verify that your migrated document in Open Content will work?
  • How to test on stage or local dev environment?
  • Redirects when new Naviga content change?
  • Static content and redirect between sites

Was this helpful?

  1. Widgets and component packages
  2. Redirect Original URLs plugin

Installation

Naviga Web can take care of redirecting your old article URLs to their new URLs. This page describes what you need to set that up.

Staying on search engines

Naviga web has clean and friendly article URLs, based on article Section and Headline. Making it as friendly both for humans and robots. To make search engines happy you should have all your old URLs redirected to these new Naviga Web URLs.

Naviga Web redirects with HTTP/1.1 301 Moved Permanently to set correct new protocol, domain and URL.

For redirects to work, article mapping needs to be done before go-live, otherwise search engines will crawl and find 404:s, resulting in the migrated articles being permanently deleted from the search result. On migration of old articles, make sure you add all existing old URLs for every article.

Map old URLs in article metadata

Add old URLs as itemMetaExtProperty values like this.

<?xml version="1.0" encoding="UTF-8"?>
<newsItem ...>
    <itemMeta>
        <itemMetaExtProperty type="imext:originalUrl" value="https://example.com/my-old-article-1.234"/>
        <itemMetaExtProperty type="imext:originalUrl" value="http://www.example.com/my-old-folder/my-old-article/"/>
        ...
    </itemMeta>
    ...
</newsItem>

The syntax is important, but some variations are supported.

Supported URL variations

As you see in the example above, originalUrl has some wildcard support. The plugin will match visitors coming from URLs:

  • both with "http" and "https"

  • both with and without leading "www." subdomain

  • both with and without trailing slash ("/")

This being said, it is preferable to enter the exact old URLs that the search engines have indexed.

Multiple URLs

Multiple originalUrls per article is supported.

Setting up the plugin

The plugin needs to be configured to run optimally. Most of it can be done automatically.

When you have entered all your originalUrls, go to the plugin's settings page.

Start by configuring the field Name of the OriginalUrls property. By default, it is "OriginalUrls". You only need to change this if you have another value in your OC configuration. If you are using Base Theme 1, you should change the value to "OriginalUrl".

Press the "Analyze migrated URLs..." button to search your OC. When analysis is done, the form will automatically suggest optimal values to not use more wildcards than is actually necessary.

If you find that there is any domain missing in the Domains used list, you can add it manually and press "Analyze migrated URLs..." again.

Save the settings.

If you have had multiple domains

If you have originalUrls from any other domain name(s) than the one you currently use, you can configure your domains in different ways.

If cases like the above are not an issue, the plugin will handle the redirects automatically.

Test and development

How to verify that your migrated document in Open Content will work?

You can test your originalUrl by using public Open Content search.

This is an OC match query. You can run it on your public Open Content to test your migration:

contenttype:Article AND OriginalUrls:"https://old.com/foo"

Replace the URL above with the exact OriginalUrl that you put in itemMetaExtProperty.

How to test on stage or local dev environment?

No extra metadata is required for stage and local dev environments. They are mapped to production domain automatically.

Simply try URL:s on your stage or local dev environment as if it were your production environment. This also works if you have original URLs from another domain than your production environment.

Redirects when new Naviga content change?

When you change URL for an article, Naviga Web will automatically remember the old and handle redirects for you.

If you delete (unpublish) an article it will be removed; page not found (404). Republishing will not give you a redirect.

Same goes for Concepts and other content.

Static content and redirect between sites

That solves in-site shortcuts:

/about =>/customer-service/contact-information/about-us

And nice marketing links:

/podcast => https://www.our-podcast-platform.com/example-site

PreviousRedirect Original URLs pluginNextChangelog

Last updated 4 years ago

Was this helpful?

If precision is extra important (for example, if you both have an originalUrl and a current URL , and they should lead to different content), point your old domains' DNS to the same server as your new one, and use to connect them to the same Wordpress site. That way, the Redirect Original URLs plugin is guaranteed to get to work on the actual originalUrl, rather than a redirect to .

Example: if the original URL is , and the final URL should be , and your stage or local dev environment is running on , then simply test . It should redirect to .

Caveat: If you have several old domains, and they have some URLs with identical paths, such as and , you can only test one of them.

If you want some custom URLs you can do that with different 3rd party plugin settings, for example .

https://old-site.com/sports/
https://new-site.com/sports/
Domain mapping plugin
https://new-site.com/sports/
https://old-site.com/1999/05/13/headline
https://new-site.com/section/headline/
https://your-site.stage.infomaker.io/
https://your-site.stage.infomaker.io/1999/05/13/headline
https://your-site.stage.infomaker.io/section/headline/
https://old-site1.com/1999/05/13/headline
https://old-site2.com/1999/05/13/headline
Simple 301 Redirects