Configuring Your Site’s Friendly URL
Friendly URLs are readable URLs that can helps users quickly access your site. Each URL must be unique and is appended to https://localhost:8080/web
(e.g., https://localhost:8080/web/helloworld/
).
When private pages are enabled, you can set friendly URLs for them as well. Once set, they are appended to https://localhost:8080/group
.
Setting a Site’s Friendly URL
-
Open the Site Menu (), expand Configuration, and go to Site Settings → Site Configuration → Site URL.
-
Enter a Friendly URL.
-
Click Save.
If you want to add a friendly URL for your site’s home page, follow the additional steps in the next section.
Setting Your Instance’s Home URL
The home URL refers to the default URL or path where users are sent when they access the base URL of the Liferay instance, such as http://localhost:8080
.
If you add a friendly URL for your instance’s home page, you should update your instance’s home URL field so page requests to the home URL redirect properly. Failing to do so may cause inconsistencies between the URL paths, redirect problems, and broken links.
-
Open the Global Menu (), click the Control Panel tab, and go to Instance Settings.
-
Select Instance Configuration under the Platform heading and click the General link.
-
Under Navigation, enter your new friendly home URL into the Home URL field. For example, setting the friendly URL of your default site to
/my-site
makes your site’s public home page’s URLhttps://localhost:8080/web/my-site/home
. So, you would enter/web/my-site/home
.
Once you’ve entered this setting, page requests to localhost:8080
redirect to the friendly URL of your Liferay DXP instance’s new home page.