[英]RealURL problems when using TYPO3 and Magento in one webroot
We have following setup: 我们有以下设置:
The webroot contains two directories. webroot包含两个目录。 One for Magento and one for TYPO3.
一个用于Magento,另一个用于TYPO3。
I have an additional ht.access which should rewrite some urls to use TYPO3. 我还有一个ht.access,它应该重写一些使用TYPO3的URL。 Everything else should go to Magento.
其他一切都应该交给Magento。 This htaccess looks like this:
此htaccess如下所示:
<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" 现在,当我调用一个URL时,可以说
http://host/informationen
RealURL将其重定向到http://host/cms/rmationen
,这会导致“路径段错误”
I also tried / and /cms/ as RewriteBase. 我还尝试了/和/ cms /作为RewriteBase。 Nothing works as expected.
没有任何预期的效果。
Is there any workaround to realize both systems using one domain? 是否有任何变通办法可以使用一个域来实现两个系统?
Cheers Matthias 干杯马提亚
您应该首先放置“ cms”重定向块,因为[L]会停止所有进一步的处理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.