I am developing a single page application where I pushing various module loads to the URL as path. We have inbuilt handler to change the path to parameters internally.
But to make it bookmarkable we have to use .htaccess to manage the paths.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^applications/sample([/]+[a-z]+)+$ applications/sample/index.html [L]
</IfModule>
Now this is working till the first level....
applications/sample/module is loading fine.... but
applications/sample/module/submodule is not working...
Where am I going wrong with the RewriteRule ? I am looking for the following rule....
<rule>
<note>Rewrite sample/module1, sample/module2, ... sample/moduleX to /sample/index.html and sub-modules as well</note>
<from>/sample/(home|book|table|...|module)(.*)</from>
<to>/sample/index.html</to>
</rule>