[TYPO3-german] realurl-Problem mit preVars
Ingo Preuß
preuss at zedat.fu-berlin.de
Thu Jun 3 12:37:27 CEST 2010
Hallo,
realurl, tt_news und Mehrsprachigkeit laufen fehlerfrei, solange der
L-Parameter am Ende der URL steht und preVars auskommentiert sind:
http://domain.de/top/homepage.html?L=0
.htaccess mit L-Parameter am Ende:
3 # Enable URL rewriting
4 RewriteEngine On
5
6 RewriteRule ^/typo3$ - [L]
7 RewriteRule ^/typo3/.*$ - [L]
8
9 # If the file/symlink/directory does not exist => Redirect to index.php
10 # Important note: If you copy/paste this into httpd.conf instead
11 # of .htaccess you will need to add '%{DOCUMENT_ROOT}' left to each
12 # '%{REQUEST_FILENAME}' part.
13 RewriteCond %{REQUEST_FILENAME} !-f
14 RewriteCond %{REQUEST_FILENAME} !-d
15 RewriteCond %{REQUEST_FILENAME} !-l
16
17 RewriteRule .* /index.php
Aktiviere ich preVars erhalte ich folgende URL:
http://domain.de/de/
Allerdings funktionieren die Verweise nicht mehr, da 'page path',
'fixedPostVar' und 'postVar' fehlen.
.htaccess mit URL bis preVars:
1 RewriteEngine On
2
3 # Erzwingt einem Slash am Ende der Zeile, wenn es keine Datei ist.
4 RewriteCond %{REQUEST_FILENAME} !-f
5 RewriteCond %{REQUEST_URI} !(.*)/$
6 RewriteRule ^(.*)$ // [L,R=301]
7
8 RewriteRule
^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/
- [L]
9 RewriteRule ^typo3$ typo3/index_re.php [L]
10
11 # Wenn keine Sprache gesetzt ist, wird eine Sprache gesetzt
12 RewriteCond %{REQUEST_FILENAME} !-f
13 RewriteCond %{REQUEST_URI} !^/de/(.*)$
14 RewriteCond %{REQUEST_URI} !^/en/(.*)$
15 RewriteRule ^(.*)$ /de/ [L,R=301]
16
17
18 RewriteCond %{REQUEST_FILENAME} !-f
19 RewriteCond %{REQUEST_FILENAME} !-d
20 RewriteCond %{REQUEST_FILENAME} !-l
21 RewriteRule .* index.php [L]
Dmitry's howto verrät nichts über die .htaccess. Wisst ihr Rat?
Gruß, Ingo
----------------------
Ingo Preuss
Rigaer Strasse 65
10247 Berlin
0163.160 51 03
More information about the TYPO3-german
mailing list