0
votes

We have following setup:

The webroot contains two directories. One for Magento and one for TYPO3.

I have an additional ht.access which should rewrite some urls to use TYPO3. Everything else should go to Magento. This htaccess looks like 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 I call a url, lets say http://host/informationen RealURL redirects this to http://host/cms/rmationen which leads to "Path Segment errors"

I also tried / and /cms/ as RewriteBase. Nothing works as expected.

Is there any workaround to realize both systems using one domain?

Cheers Matthias

1
You want to redirect or to rewrite ?Lucas Willems
I need to rewrite. For SEO reasons I don't want to have a pathsegment like 'cms' in the url.Matthias Nitsch

1 Answers

0
votes

You should put the 'cms' redirect block first, as the [L] stops all further processing.