.htaccess - RealURL problems when using TYPO3 and Magento in one webroot -


we have following setup:

the webroot contains 2 directories. 1 magento , 1 typo3.

i have additional ht.access should rewrite urls use typo3. else should go magento. htaccess looks this:

<ifmodule mod_rewrite.c>  options -indexes  follow symlinks  options +followsymlinks enable url rewriting rewriteengine on rewriterule ^$ /cms/index.php [l]  rewriterule ^kurse(.*)$ /cms/index.php [l] rewriterule ^service(.*)$ /cms/index.php [l] rewriterule ^kontakt(.*)$ /cms/index.php [l] rewriterule ^informationen(.*)$ /cms/index.php [l] rewriterule ^typo3$ /cms/typo3/index.php [l]  rewriterule ^(.*)$ /shop/index.php [l]  </ifmodule> 

now when call url, lets http://host/informationen realurl redirects http://host/cms/rmationen leads "path segment errors"

i tried / , /cms/ rewritebase. nothing works expected.

is there workaround realize both systems using 1 domain?

cheers matthias

you should put 'cms' redirect block first, [l] stops further processing.


Comments