[TYPO3-english] RealURL: class t3lib_div.getIndpEnv('TYPO3_SITE_URL') not returning correct url path in combination with RealURL
J. Bakshi
joydeep at infoservices.in
Fri Jul 31 13:12:18 CEST 2009
Marieke Vandamme wrote:
> Hello,
>
> Still no response, so I hope underneath apache configuration might be of
> some help.
> We searched quite a long time to get the configuration correct:
> - We have 2 virtual hosts (www.test.com and www2.test.com)
> - Each has it's own root in the htdocs
> - Inside the directory for the host, is a symbolic link site to the
> typo3-website-root-directory
>
> Without those virtual hosts realurl seems to work,
> but with them, we get strange behavior like described in previous post.
>
> Please, any suggestion is welcome!! Thanks a lot! Marieke.
>
Hello,
I also have virtual hosts. But I place the realurl related settings at
.htaccess and all virtual hosts run realurl without any problem.
Also allow symlink option in .htaccess
> Our apache configuration:
> <VirtualHost *>
> DocumentRoot /srv/www/htdocs/www.test.com
> ServerName www.test.com
> <Directory /srv/www/htdocs/www.test.com>
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> <IfModule rewrite_module>
> RewriteEngine on
> RewriteRule ^/site/typo3$ - [L]
> RewriteRule ^/site/typo3/(.*)$ - [L]
>
> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-l
> RewriteRule ^/site/.* /site/index.php
> </IfModule>
> </VirtualHost>
> <VirtualHost *>
> DocumentRoot /srv/www/htdocs/www2.test.com
> ServerAdmin test at test.com
> <Directory /srv/www/htdocs/www2.test.com>
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> <IfModule rewrite_module>
> RewriteEngine on
> RewriteRule ^/site/typo3$ - [L]
> RewriteRule ^/site/typo3/(.*)$ - [L]
>
> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-l
> RewriteRule ^/site/.* /site/index.php
> </IfModule>
> </VirtualHost>
>
More information about the TYPO3-english
mailing list