[TYPO3] CoolURI and TYPO3 in subfolders - rewrite problems with hiding the subfolder part
Aljoscha Rittner
ARittner at gmx.net
Sun Oct 28 15:27:49 CET 2007
Hello all!
I've installed CoolURI 1.0.7, PHP 5, TYPO3 4.1.2
My TYPO3 installation is under a subfolder named "sepix".
www.sepix.org/ (~= public_html/)
sepix/
typo3/
typo3conf/
...
I have a domain sepix.org with follow rewrites to the subfolder:
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]
(this rewrites are in the base public_html/.htaccess)
in the /spepix/.htaccess I've the follow (standard) TYPO3 rewrites:
RewriteEngine On
RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
I have a very small pagetree:
start
sample
my baseURL is http://www.sepix.org/
and I want to access follow URLs:
[1] http://www.sepix.org/
[2] http://www.sepix.org/start/
[3] http://www.sepix.org/start/sample
[1] and [2] works. But [3] gives me a "page not found"
For [1] and [2], the relative URLs to my CSS works fine
(like this URLs: http://www.sepix.org/fileadmin/css/layout_2col_left_13.css
and http://www.sepix.org/fileadmin/css/myOwnStyles.css )
I've tested some other URLs:
[4] http://www.sepix.org/sample/
[5] http://www.sepix.org/sepix/start/sample
[6] http://www.sepix.org/gullugullu/
The URL [4] open the "start" page (wrong!?)
and [5] show me the real "sample"-page.
[6] is a "page not found" (and this is ok)
My cooluri-xml file is the default CoolURI file for TYPO3.
The problem is the wrong "Page not found" for the URL [3]. TYPO3
builds the baseURL in my html with
<base href="http://www.sepix.org/" />
and all links are relative like this:
<a href="start/sample/">Beispiel</a>
But it does not work :-(
best regards,
Josh.
More information about the TYPO3-english
mailing list