Einzelnen Beitrag anzeigen
Alt 08.06.2006, 14:44   #5
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

In meiner Ursprünglichen Version ist ein / zuviel:
Code:
RewriteRule ^(.*) http://domain.tld/cms/$1
statt
Code:
RewriteRule ^/(.*) http://domain.tld/cms/$1
Andere Idee:
In das gemeinsame Verzeichniss (also domain.tld/) folgende .htaccess:
Code:
RewriteEngine on
#sub.domain.tld auf domain.tld/cms umleiten
RewriteCond %{HTTP_HOST}   ^sub\.domain\.tld
RewriteRule ^(.*) http://domain.tld/cms/$1 [L]
Dann mal probieren ob damit korrekt von sub.domain.tld auf domain.tld/cms umgeleitet wird - wenn nicht ins apache error log schauen ob ein Fehler ausgegeben wird.

Und ins /cms Verzeichniss die standard Realurl .htaccess.

Falls du Zugriff auf die httpd.conf hast (wird wohl nur der Fall sein wenn dir der ganze Server gehört) kannst du RewriteLog aktivieren:
In die httpd.conf
Code:
RewriteLog "rewrite.log"
RewriteLogLevel 3
eintragen.

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)
jak ist offline   Mit Zitat antworten