简体   繁体   English

Typo3重定向域,前缀为另一个域

[英]Typo3 redirect domain with prefix to another domain

I am using Typo3 with RealUrl and theres following i want: foo.domain.com should redirect to www.otherdomain.com 我正在使用Typo3和RealUrl以及以下我想要: foo.domain.com应该重定向到www.otherdomain.com

I tried it with domain records in Typo3 (theres a redirect option) and .htaccess stuff but nothing seems to work. 我尝试使用Typo3中的域记录(重定向选项)和.htaccess,但似乎没有任何效果。

Every prefix i try foo.domain.com or bar.domain.com redirects me to domain.com 每个前缀我尝试foo.domain.combar.domain.com重定向到domain.com

Any ideas? 有任何想法吗?

Heres the .htaccess in case you want to take a look: 如果您想看一下,请查看.htaccess:

RewriteEngine On

RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]

RewriteRule ^typo3$ typo3/index_re.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php [L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^bli.bla\.com$ [NC]
RewriteRule ^(.*)$ http://bla.bli.com/$1 [R=301,L]

or 要么

RewriteCond %{HTTP_HOST} ^www1.bla.com$
RewriteRule (.*)$ http://www5.bla.com/$1 [R=301,L]

This example works 100% if implementet right. 如果实现正确,此示例将100%工作。 (TYPO3 .htaccess: "# Add your own rules here.") Maybe you should delete Cooluri or Realurl Cached links. (TYPO3 .htaccess:“#在这里添加你自己的规则。”)也许你应该删除Cooluri或Realurl Cached链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM