[Typo3] domain redirection to subfolders
Christoph Koehler
christoph.koehler at gmail.com
Wed Jun 22 06:01:16 CEST 2005
.htaccess file:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.domain\.com [nc]
RewriteCond %{REQUEST_URI} !newtypo3/
RewriteRule ^(.*)$ newtypo3/$1 [L]
RewriteCond %{HTTP_HOST} ^domain\.com [nc]
RewriteCond %{REQUEST_URI} !newtypo3/
RewriteRule ^(.*)$ newtypo3/$1 [L]
It's not perfect, for example if I go to www.domain.com/typo3, it will
show the other hosts path, like http://www.domain2.net/newtypo3/typo3
but for now this will work.
On Tue, 21 Jun 2005 22:34:22 -0500, Uwe Graber <u.graber at gmx.de> wrote:
> Christoph Koehler wrote:
>
>> Nevermind, got it :)
>> apache's rewrite is truly powerful!
>
> nice, and how you did it?
>
More information about the TYPO3-english
mailing list