I can't find anything about configuration of ExtJs 4.x with Sencha CMD created MVC project under rewrite url (Apache mod_refrite) application.

The problem is partly discussed here

but it did not solve my problem.
  • bootstrap.js can not load bootstrap.json
  • also application files have problem to be loaded

Both are tried to load from original url as there is no rewriting of url. My app.js looks like
    <!-- <x-compile> -->
        <!-- <x-bootstrap> -->
            <link rel="stylesheet" href="{$baseUrl}/ext4/bootstrap.css">
            <script src="{$baseUrl}/ext4/ext/ext-all.js"></script>
            <script src="{$baseUrl}/ext4/bootstrap.js"></script>
        <!-- </x-bootstrap> -->
        <script src="{$baseUrl}/ext4/app.js"></script>
    <!-- </x-compile> -->
Only solution I have found so far is to add

appFolder:' <abs path to  static content dir>',
to app.js and Application.js file. The problem with bootstrap.json I can solve only in modification of bootstrap.js.

Is there a better way? Thanks