How to customize the Page Not Found (404) page

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問



The content on this page includes steps to customize or extend Atlassian software (adding/changing CSS rules, HTML, JavaScript, etc.). Per the Atlassian Support Offerings, support does not include customizations made to Atlassian products. Be aware that this material is provided for your information only and using it is done so at your risk.

If you have any questions about this or any customization, please ask the community at Atlassian Answers or consider working with an Atlassian Solution Partner.


目的

To customize the 404 error page served by Crowd, in order to better fit the design of your site.


ソリューション 

  1. Navigate to the following path on Crowd Server.

    <crowd-install>/crowd-webapp/WEB-INF/web.xml
  2. Add the following snippet at the bottom of the page, but before the </web-app> tag.

    <error-page>
     <error-code>404</error-code>
     <location>/404.html</location>
    </error-page>
  3. Create a new file 404.html under <crowd-install>/crowd-webapp/. We can use any HTML script like following to modify the custom page.

    <!DOCTYPE html>
    <html>
    <body>
    
    <p>Modified 404 page</p>
    
    </body>
    </html>

    Restart Crowd.





最終更新日 2018 年 11 月 7 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.