简体   繁体   中英

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

I tried it with domain records in Typo3 (theres a redirect option) and .htaccess stuff but nothing seems to work.

Every prefix i try foo.domain.com or bar.domain.com redirects me to domain.com

Any ideas?

Heres the .htaccess in case you want to take a look:

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. (TYPO3 .htaccess: "# Add your own rules here.") Maybe you should delete Cooluri or Realurl Cached links.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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