[TYPO3] each root to different subfolder instead of subdomain

Krystian Szymukowicz t33kRE.MO.VE. at RE.MO.VE.prolabium.com
Sun Apr 27 12:25:35 CEST 2008


hi all

I have 3 sites with a structure like this:

*
|
|- Site 1 (id=10)
|-- Page 1
|-- Page 2
|-- etc.
|
|- Site 2 (id=20)
|-- Page 1
|-- Page 2 (id=24)
|-- etc.
|
|- Site 3 (id=30)
|-- Page 1
|-- Page 2
|-- etc.

I have created subdomains:
a) site1.domain.com,
b) site2.domain.com,
c) site3.domain.com
and a proper domain records in each root (id 10, id 20, id 30).

It works well.



But now I'd like to have subfolders instead of subdomains.
That is:

It is now and work:
http://site1.domain.com/index.php?id=9
But should be:
http://www.domain.com/site1/index.php?id=9
etc.


I've created following line in .htaccess

RewriteRule ^site1/(.*)$ $1 [L]

and it partially works as if I type:
http://www.domain.com/site1/index.php?id=9
the address remains...
...but if I'd like to get id from second site (site2) then it shows 
first page from site1
eg.

http://www.domain.com/site1/index.php?id=24
shows content from:
http://www.domain.com/site1/index.php?id=1
although the good address with id=24 remains.


I've added domain records www.domain.com/site1/, www.domain.com/site2/, 
www.domain.com/site3/ but it doesn't work.


Have you any idea how to solve it?
Thanks.

--
grtz
Krystian



More information about the TYPO3-english mailing list