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/).

Note

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

  1. Open the Site Menu (Site Menu), expand Configuration, and go to Site SettingsSite ConfigurationSite URL.

  2. Enter a Friendly URL.

  3. Click Save.

You can configure a friendly URL for your site.

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.

  1. Open the Global Menu (Global Menu icon), click the Control Panel tab, and go to Instance Settings.

  2. Select Instance Configuration under the Platform heading and click the General link.

  3. 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 URL https://localhost:8080/web/my-site/home. So, you would enter /web/my-site/home.

Enter the updated home URL to redirect to your new friendly URL.

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.

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy