Question

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]
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top