/c/ redirects to login page
How To articles are not official guidelines or officially
supporteddocumentation. They are community-contributed content and may
not alwaysreflect the latest updates to Liferay DXP. We welcome your
feedback toimprove How to articles!
While we make every effort to ensure this Knowledge Base is accurate,
itmay not always reflect the most recent updates or official
guidelines.We appreciate your understanding and encourage you to reach
out with anyfeedback or concerns.
Legacy Article
You are viewing an article from our legacy
"FastTrack"publication program, made available for
informational purposes. Articlesin this program were published without a
requirement for independentediting or verification and are provided
"as is" withoutguarantee.
Before using any information from this article, independently verify
itssuitability for your situation and project.
Issue
- When the user tries to access the URL: 'http://localhost:8080/c/', even if the 'c' page doesn't exist, it redirects to the login page instead of a 404 page not found.
Environment
- Liferay DXP [all versions]
Resolution
-
In the URL, the prefix "c" designates a unique portal access point. Usually, there are several URLs, such as /c/portal/login, /c/portal/logout, or something similar, that use the prefix 'c'. It is typically not a URL pattern that a user will use, but an internal one that Liferay will use for internal redirection and other special functions.
-
As a result, when the user accesses the URL: http://localhost:8080/c/, it recognizes that he/she wants to access the portal and redirects them to the login page so that they can fill out their credentials before entering into the portal.
Did this article resolve your issue ?