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
Follow these steps to set your 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
If you add a friendly URL for your instance’s Home Page, you should update your instance’s Home URL field so that page requests to http://localhost:8080
redirect properly:
-
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.