[TYPO3-dev] getIndpEnv('TYPO3_SITE_URL') problems when using mod_rewrite in httpd.conf (Apache)
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Tue Aug 22 18:21:29 CEST 2006
Hi!
getIndpEnv() tries to determine the TYPO3_SITE_URL via TYPO3_REQUEST_DIR
and the constants PATH_thisScript and PATH_site. But TYPO3_REQUEST_DIR is
based on SCRIPT_NAME.
But see my earlier postings for the problem in this approach.
URL: http://host/base/abc/def
.htaccess:
SCRIPT_NAME /base/index.php
httpd.conf:
SCRIPT_NAME /base/abc/def
The script now tries to compare apples and bananas. The result is a broken
TYPO3_REQUEST_DIR. Instead of http://host/base/ it is
http://host/base/abc/. So TYPO3_SITE_URL is also wrong.
Masi
More information about the TYPO3-dev
mailing list