[TYPO3] each root to different subfolder instead of subdomain

Oliver Rowlands oliver at liquidlight.co.uk
Sun May 25 11:50:03 CEST 2008


Hi Krystian,

I would suggest using RealURL or CoolURI as they will automatically 
create the subfolder structure.

Best regards,

Oliver

Krystian Szymukowicz wrote:
> 
> 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
> 

-- 
Oliver Rowlands
:: Liquid Light ::

E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk

T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35


More information about the TYPO3-english mailing list