My Oracle Support Banner

301 Redirect Requests are Incorrectly Forwarded to ServerName Instead of Expected Location (Doc ID 2983676.1)

Last updated on OCTOBER 27, 2023

Applies to:

Oracle HTTP Server - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

Configured following RewriteRule:
 RewriteRule ^/test$ /test2? [R=301,L]

But https://hostname/test is redirected to https://hostname instead of the expected https://hostname/test2

Following OHS debug snippets are recorded in ohs server log

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.