legacy-knowledge-base
公開されました Sep. 10, 2025

Liferay PrivateのデフォルトのフレンドリーURLを変更する方法

written-by

Rafael Regner

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

learn-legacy-article-disclaimer-text

問題

  • TomcatにバンドルされているLiferay DXPのプライベートデフォルトのフレンドリーURLを"/group "から"/private "に変更する方法を知りたいのですが。

環境

  • Liferay DXP 7.3
  • Tomcat 9.0

解像度

    1. 以下のプロパティを プロパティに追加します。 ファイルに追加します:
      layout.friendly.url.private.group.servlet.mapping=/private
    2. 以下の web.xml ファイルを編集します。 <tomcat-home>/webapps/ROOT/WEB-INF/web.xml
      <servlet-mapping>
      <servlet-name>Friendly URL Servlet - Private Group</servlet-name>
      <url-pattern>/private/*</url-pattern>
      </servlet-mapping>
    3. <tomcat-home>/webapps/ROOT/WEB-INF/liferay-web.xml.
      <filter-mapping>
      <filter-name>Strip Filter</filter-name>
      <url-pattern>/private/*</url-pattern>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
    4. キャッシュフォルダを削除し、Liferayを再起動します。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base