![]() |
![]() |
|
|
|||||||
| Internet Rat & Tat bei Internetproblemen |
![]() |
|
|
Themen-Optionen | Ansicht |
|
|
|
|
#1 |
|
Inventar
![]() Registriert seit: 13.06.2001
Beiträge: 1.830
|
Ich nehm man an, daß Typo3 nur einmal installiert ist, und zwar unter domain.tld/cms/.
Wenn sub.domain.tld auf das selbe Verzeichnis zeigt wie domain.tld, probier mal: Code:
RewriteEngine on
#sub.domain.tld auf domain.tld/cms umleiten
RewriteCond %{HTTP_HOST} ^sub\.domain\.tld
RewriteRule ^/(.*) http://domain.tld/cms/$1 [R]
#das typo3 Verzeichnis nicht weiter umleiten
RewriteRule cms/typo3/$ - [L]
RewriteRule cms/typo3/.*$ - [L]
#Umleitung fuer RealUrl
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule domain.tld/cms/.* domain.tld/cms/index.php
Wenn sub.domain.tld auf ein anderes Verzeichniss zeigt als domain.tld ist es noch einfacher, dann sollte: Code:
RewriteEngine on RewriteRule ^/(.+) http://domain.tld/cms/$1 [R,L] Ich finde diese Seiten für mod_rewrite recht hilfreich: http://www.modrewrite.de/foren/ftopic82.html http://httpd.apache.org/docs/1.3/misc/rewriteguide.html jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona) Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing. \"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra) |
|
|
|
![]() |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|