[Typo3] domain redirection to subfolders

Uwe Graber u.graber at gmx.de
Mon Jun 20 17:54:12 CEST 2005


Christoph Koehler wrote:

> Thanks first of all!
> The problem is that TYPO3 is in a subdirectory, so I would like to  
> redirect all requests to that subdirectory, in a way that TYPO3 knows 
> that  one request comes from domain www.domain.com and others from  
> www.domaintwo.net.
>
> I have looked into rewrite rules with apache, but no luck still.
>
Hi,

i found this snippet in the phpwcms, may you could customize it for your 
needs.

# If phpwcms is installed in a subdirectory,
# sample: "mysubdir" then use this (remove #)
# if above lines doesn't work for you
# ===============================================
#RewriteBase /mysubdir
#RewriteRule 
^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ 
/mysubdir/index.php?id=$1.$2.$3.$4.$5.$6
#RewriteRule ^(.+)\.phtml$ /mysubdir/index.php?$1


# If you want to set rewrite logging
# ===============================================
#RewriteLog "/absolute/path/to/the/rewrite.log"
# 0 = Logging disabled, 9 = highest level of logging, only for debugging
#RewriteLogLevel 3

-- 
Uwe


Kreativität  
Wenn ich mir neue Wege erdenke, verwandle ich die Gegenwart und erschaffe meine Zukunft. 




More information about the TYPO3-english mailing list