[TYPO3] CoolUri problem with subdirectory
Florian Klug
flurl at flologics.info
Mon Sep 8 19:53:56 CEST 2008
Hi,
i'm using typo3 4.2.1 with CoolURI 1.0.15. Typo3 is installed in a subdir
of my webroot called cms/.
It works very well except for one problem: When i access the site like
http://www.wildpacher.at/cms/index.php everything is ok, though
http://www.wildpacher.at/cms/ throws a "page not found!" error page.
It doesn't depend on if cooluri is enabled or not, even
with "config.tx_cooluri_enable = 0" the root page isn't found.
Uninstalling cooluri fixes the problem, but that's not cool ;-)
The problem seems to be related to line 35 in class.tx_cooluri.php:
$paramsinurl = t3lib_div::getIndpEnv('REQUEST_URI');
On another site using cooluri 1.0.11 (where that line doesn't exist) that
error doesn't occur with the same setup. Commenting out this line resolves
my issue.
Perhaps it's just an error in my .htaccess (see below)
my setup:
----------------------------
###CoolUri###
config.baseURL = http://www.wildpacher.at/cms/
config.tx_cooluri_enable = 0
config.redirectOldLinksToNew = 0
my .htaccess
---------------------------
RewriteEngine On
RewriteBase /cms/
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|
showpic\.php)$ - [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|
showpic\.php)/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
Thanks for any help
Florian
More information about the TYPO3-english
mailing list