Why can I not access my Liferay server at the Friendly URL I set?
Written By
Nathan Roberts
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- A Friendly URL can be set to change the URL that users see when accessing a specific site. However without the Home URL being updated attempting to access the bundle at its base address will return a "Not Found" page.
Environment
- Liferay DXP 7.0
- Liferay DXP 7.1
Resolution
- When setting a Friendly URL it is also necessary to set the Home URL (found at Configuration -> Instance Settings) to the matching URL extension.
- Example:
- I set the Friendly URL of my site to
/testray and then set the Home URL to /web/testray. When I access the bundle at localhost:8080 I land on http://localhost:8080/web/testray and the Welcome page.
- This also works when a Virtual Host is set.
- Example, using the Friendly URL and Home URL above:
- I set the Virtual Host for the default Liferay Site to testray.com, if I access the bundle at testray.com:8080 I land on http://testray.com:8080/ and the Welcome page.
Did this article resolve your issue ?