[英]RealURL problems when using TYPO3 and Magento in one webroot
我們有以下設置:
webroot包含兩個目錄。 一個用於Magento,另一個用於TYPO3。
我還有一個ht.access,它應該重寫一些使用TYPO3的URL。 其他一切都應該交給Magento。 此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>
現在,當我調用一個URL時,可以說http://host/informationen
RealURL將其重定向到http://host/cms/rmationen
,這會導致“路徑段錯誤”
我還嘗試了/和/ cms /作為RewriteBase。 沒有任何預期的效果。
是否有任何變通辦法可以使用一個域來實現兩個系統?
干杯馬提亞
您應該首先放置“ cms”重定向塊,因為[L]會停止所有進一步的處理。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.