My Oracle Support Banner

Redirects.json Not Responding For Secure Site URLs (Doc ID 2917701.1)

Last updated on DECEMBER 29, 2022

Applies to:

Oracle Content Management - Version 18.2.5 and later
Content and Experience Cloud Service - Version 18.2.5 and later
Content and Experience Cloud Classic - Version 18.2.5 and later
Information in this document applies to any platform.

Symptoms

Redirect Rules Specified in redirects.json for Site Not Working on Live DNS Host

Redirect rule is specified in redirects.json and uploaded to site and committed.
- e.g.

...
...
  "redirectRules": [{
  "type": "string",
  "comment": "home page redirect",
  "expression": "/en/home",
  "location": "/en/"
  },
...
...

The redirect works via direct OCM host url:
e.g.
GET https://{ocm_instance}.cec.ocp.oraclecloud.com/site/authsite/examplesite/en/home
- Response: 301
- Location: /en/

However, when requesting the same url via the DNS hostname, it does not return the 301 redirect:
e.g.
GET https://{dns_hos}/site/authsite/examplesite/en/home
- Response: 404

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.