legacy-knowledge-base
公開されました Jul. 2, 2025

Liferay Cloud がホストする Web サイトは、https://mydomain を https://www.mydomain にリダイレクトしません

written-by

Alfonso Crisci

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

問題

  • URL に www 部分がない Liferay Cloud がホストする Web サイトを開くと、 www 部分があるサイトへのリダイレクトは発生しません。 例:

    https://mydomain.com https://www.mydomain.comにリダイレクトされません

Environment

  • ライフレイ クラウド

解決策

  • nginx の公式ドキュメントに従って、以下のような構成にすることで、期待される動作を実現できる場合があります。

    server {
    listen 80;
    server_name mydomain.com;
    return 301 $scheme://www.mydomain.com$request_uri;
    }
    nginx.conf ファイルで。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base