[TYPO3] CoolURI and TYPO3 in subfolders - rewrite problems with hiding the subfolder part
Aljoscha Rittner
ARittner at gmx.net
Sun Oct 28 23:20:42 CET 2007
Hi Jan!
>> The first 6 characters are killed.
> This is not normal
;-) yes
>> http://www.sepix.org/foobar
>> are open www.sepix.org/
> because foobar is cut away, but http://www.sepix.org/foobarx results in
> Page not found.
> you need to find out why the chars are killed
I've no idea. My .htaccess
RewriteEngine on
RewriteBase /
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^www\.sepix\.org [nc]
RewriteCond %{REQUEST_URI} !sepix/
RewriteRule ^(.*)$ sepix/$1 [L]
RewriteCond %{HTTP_HOST} ^sepix\.org [nc]
RewriteCond %{REQUEST_URI} !sepix/
RewriteRule ^(.*)$ sepix/$1 [L]
redirects
www.sepix.org/sepix/* to www.sepix.org/*
IMHO, this is ok. All my other links, like my css-URLs work:
http://www.sepix.org/fileadmin/css/layout_2col_left_13.css
http://www.sepix.org/fileadmin/css/myOwnStyles.css
(e.g. myOwnStyles.css is in /sepix/fileadmin/css/)
and 6 chars = "sepix/" A coincidence?
a <?php phpinfo() ?> in my sepix-folder shows me:
http://www.sepix.org/phpinfo.php
PHP_SELF /phpinfo.php
_SERVER["REDIRECT_URL"] /sepix/phpinfo.php
_SERVER["REQUEST_URI"] /phpinfo.php
_SERVER["SCRIPT_NAME"] /sepix/phpinfo.php
_ENV["REDIRECT_URL"] /sepix/phpinfo.php
_ENV["REQUEST_URI"] /phpinfo.php
_ENV["PHP_SELF"] /phpinfo.php
is this ok or not? I don't know :-(
If I create a test folder under /sepix I get the follow values
http://www.sepix.org/test/phpinfo.php
PHP_SELF /test/phpinfo.php
_SERVER["REDIRECT_URL"] /sepix/test/phpinfo.php
_SERVER["REQUEST_URI"] /test/phpinfo.php
_SERVER["SCRIPT_NAME"] /sepix/test/phpinfo.php
_ENV["REDIRECT_URL"] /sepix/test/phpinfo.php
_ENV["REQUEST_URI"] /test/phpinfo.php
_ENV["PHP_SELF"] /test/phpinfo.php
No killed characters and the small test case runs with the redirected
URL.
best regards,
Josh.
More information about the TYPO3-english
mailing list