When you request a page with an extension other than "html" or "htm" the browser displays the HTML source instead of the page. You are using dispatcher.


What you have encountered happens when the web server returns a content type of text/plain for all unknown extension. IE will display the content properly, Firefox have this problem as it follows the http header strictly.

This occurs for cached content by the dispatcher, if you use the URL you will see that the content is displayed correctly, as the content is served from the CQ instance with the correct content type been set.


To change the web server behavior, you will need to change the default mime type to be text/html If you are using Apache, modify your http.conf, look for DefaultType and change the value to text/html

For other web server, you will need to check out the web server documentation on how to change the default mime type.

After changing the configuration, restart the web server, clear your browser cache

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책