mod_alias Redirect in httpd Spezial Confixx 3

Apache, Lighttpd, nginx, Cherokee
Post Reply
baumpaul
Posts: 20
Joined: 2004-06-03 12:00
Contact:
 

mod_alias Redirect in httpd Spezial Confixx 3

Post by baumpaul »

Hallo,

ich wollte bei meiner Homepage einstellen dass wenn jemand auf http://www.ittool.de geht man in das Verzeichnis /www/ weitergeleitet wird.

das Verzeichnis /www liegt auf dem webserver im Verzeichnis /http/ittool/www
Die Domain ist in Confixx auf das Startverzeichnis ittool eingestellt.

Ich habe diesen Befehl für die Domain http://www.ittool.de eingegeben:
Redirect 301 / http://www.itTool.de/www/
Wen ich dann aber im Browser jetzt aber http://www.ittool.de eingebe werde ich in das Verzeichnis www zwar weitergeleitet aber es wird immer wieder www angehängt, so dass meien URL irgendwann so ausschaut:
http://www.itTool.de/www/www/www/www/www/www/www/www/... bis unentlich

wie muss der httpd Spezial Eintrag richtig ausschauen?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: mod_alias Redirect in httpd Spezial Confixx 3

Post by Joe User »

Du wirst Dich mit mod_rewrite auseinandersetzen müssen, da Deine Aufgabenstellung nicht durch mod_alias erreicht werden kann.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
baumpaul
Posts: 20
Joined: 2004-06-03 12:00
Contact:
 

Re: mod_alias Redirect in httpd Spezial Confixx 3

Post by baumpaul »

Hallo,

wieso das? Ich habe das in diesem Beitrag gelesen.
http://www.suchmaschinentricks.de/techn ... ungen.html

Kannst du mir das flott erklären 8O
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: mod_alias Redirect in httpd Spezial Confixx 3

Post by Joe User »

Bei Deiner Vorgehensweise (mod_alias) wird intern /www automatisch zu / 'gekürzt', wodurch wieder ein www angehängt werden muss und eine 'Endlosschleife' entsteht. Entweder Du leitest auf eine andere (Sub)Domain um, oder Du nutzt mod_rewrite...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Post Reply