Forum Moderators: phranque

Message Too Old, No Replies

All subdomains pointing to one index.php

I need Typo3 to figure out what site to serve depending on the subdomain

         

kozy

6:33 pm on Jan 17, 2006 (gmt 0)

10+ Year Member



Hello everybody,

I need Typo3 to figure out what site to serve depending on the subdomain. It's common practice, look at this page [typo3.org] for example.

The dns records are setup using a wildcard like so *.domain.tld so far so good. My host now translates a request to a subdomain to a request to a directory in my home root. For example if the request is sub.domain.tld it looks for a directory named sub. Now I want to point all subdomains to my main sites index.php. I dont want to rewrite it probably. How should I be doing this?

Can I use an .htaccess file or is there a special symlink that you can create in the directory? I have for example one named '_' which is used for directing the main domain to the www directory. What is the name for such a special symlink btw?

Thank you so much.

Kozy.

kozy

2:48 pm on Jan 18, 2006 (gmt 0)

10+ Year Member



Any help is really much appreciated!