I need it to chain, the problem is the order of how it rewrites stuff.
For example: demo1.example.com/home/index
First rewrite (In root) should say, hey, you need to goto /demo1/home/index
Second rewrite (In /demo1) should say, hey, you need to goto /dev/home/index
Third rewrite(In /dev) should say, hey, you need to goto /dev/index.php?/home/index
Problem is this, if the folder home exists, with a .htaccess file in it, the order then becomes:
First rewrite (In /home): /home/index.php?/home/index
Second rewrite (In root): /demo1/home/index.php?/home/index
Third rewrite (In /demo1): /dev/home/index.php?/home/index
It should go like the first one, and rewrite it to the demo1 folder, before trying to look in the home folder to begin with. That's the only rule I need to have go before the others, and putting it in the server config did not do anything. Please help.