Search code examples
jakarta-eeadobeaemdispatcher

Adobe CQ. Processing URLs without .html


I have these URLs:

http://example.com/about.html

and

http://example.com/about

First work fine. Second shows me 404 error. Some pages works fine, some no. It happens also on country branches.

So is here a place were I can configure it(please in details)?

Thanks!


Solution

  • CQ requires an extension as it can render resource in many different ways (json, xml, html, etc.) I think the best way to set such default extension is to use mod_rewrite in Apache:

    RewriteCond %{REQUEST_URI} !\.\w+$
    RewriteRule (.+) $1.html [PT]