Confluence URLs do not render due to Apache URI escaping

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When Confluence sits behind an Apache httpd server, links may not work and the application will complain about insufficient authorization or broken links.

Or:

Attempting to login into Confluence failed with following error as the last segment of the URL contains os_destination=%252Findex.action

1 The requested URL //index.action was not found on this server.

Cause

Apache httpd re-encodes the URL encoded GET request variable that represents the target destination page (%2F representing / will become %252F). That is the % will be encoded on its own. When the authentication engine decodes the variable, the string won't match any page in the application context. There is a bug report regarding the additional slash that is being tracked with Apache at https://issues.apache.org/bugzilla/show_bug.cgi?id=39746

Resolution

Add NE to the RewriteRule in the Confluence configuration section.

See

Updated on April 16, 2025

Still need help?

The Atlassian Community is here for you.