[TYPO3] Multisite & robots.txt or sitemap.xml from one Typo3 ROOT

Christopher Torgalson bedlamhotel at gmail.com
Thu May 15 07:39:45 CEST 2008


Hi,

On Thu, May 15, 2008 at 4:26 AM, Roman Macko <macko at dimension17.sk> wrote:
> Hello to everyone,
>

<snip>

> 5#
> ??? ...and here is my little "get stuck" when I should apply this to
> more Domains (Multisite) in one Typo3 installation, and need virtualy
> mod_rewrite-ing files like robots.txt and sitemap.xml differently for
> each domain. I believe, this can be easy for someone who have
> mod_rewrite behind him, but that's not me at least not today...:)
>
> I need help, how to setup modrewrite via .htaccess to do things like:
> (I already have basic CoolURI rewriterules in .htaccess, so please let
> it in your mind)
>
> Domain1.com/robots.txt     >     SAME-ROOT/robots1.txt
> Domain2.com/robots.txt     >     SAME-ROOT/folder/robots2.txt
> Domain1.com/sitemap.xml     >     SAME-ROOT/sitemap1.xml
> Domain2.com/sitemap.xml     >     SAME-ROOT/sitemap-xyz.xml
>
>
> Please, can someone help me(us) to finish this little guide?


Well, it seems sensible to me to use TYPO3 to produce the files. You
could use conditions to vary the content based on the hostname and
Realurl to provide the file extensions. This way you have only one of
each 'file'--technically it's cloaking, but if you have multiple
domains you don't have many options (the same would be true if you
used mod_rewrite).


-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list