eZ JS Core rewrite rules
This page is historical in part. In the eZ Publish era the ezjscore extension needed extra rewrite rules: one for its lib folder and one that sent ezjscore/call requests to index_ajax.php. Exponential 6 needs neither, and has no index_ajax.php. The earlier text remains in this page's version history.
ezjscore in Exponential 6
ezjscore is part of the Exponential kernel. Its requests are covered by the shipped rules of .htaccess_root (and by the same rules in the nginx and virtual host examples), with nothing to add:
| Request | Served by | Rule |
|---|---|---|
| Calls, for example /ezjscore/call/ezjsc::time | index.php, through the ezjscore module | the last rule: RewriteRule .* index.php |
| Packed scripts and styles | the files under var/cache/public/ (or var/<site>/cache/public/), served as they are | RewriteRule ^var/([^/]+/)?cache/(texttoimage|public)/.* - [L] |
| The scripts and styles of a design or an extension | the files, served as they are | the rules for design/ and extension/.../design/ |
To check that calls work, ask for the server time; the answer is a Unix timestamp with status 200:
curl -s -w ' %{http_code}\n' 'https://www.example.com/ezjscore/call/ezjsc::time'
If an old .htaccess or virtual host still has a rule for index_ajax.php, remove it and copy the current rules into place: ./console exp:setup:htaccess shows the difference. See htaccess example and Virtual host setup.
Contributors
- Geir Arne Waaler
- Graham Brookins Updated Maintainer
Comments
Add a comment