[TYPO3-english] TYPO3 in subdirectory with weird redirect
Jan Bednarik
info at bednarik.org
Fri Oct 25 11:45:05 CEST 2013
Hi folks,
there's one webhosting here, which has rather strange way of creating
domains and subdomains. What they do is that they direct all domains and
subdomains into one directory and using .htaccess rules redirect to the
correct directories. The rules look like this:
RewriteCond %{REQUEST_URI} !^domains/
RewriteCond %{REQUEST_URI} !^/domains/
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$
RewriteCond %{DOCUMENT_ROOT}/domains/%2 -d
RewriteRule (.*) domains/%2/$1 [DPI]
The problem is that when I then put TYPO3 into domains/example.com and
put there the default .htaccess for rewriting, I get wrong values in
siteScript and then CoolUri doesn't work.
E.g. when I go to example.com/abc/def, then the siteScript is only "def"
and thus the resolve of URL doesn't work.
RewriteBase / didn't help either.
Any ideas?
Jan
More information about the TYPO3-english
mailing list