Toon posts:

[Apache + mod_rewrite]

Pagina: 1
Acties:
  • 35 views sinds 30-01-2008

Verwijderd

Topicstarter
Hoi,

ik zit met het probleem dat ik alle requests die naar een bepaalde map op een server worden gedaan worden doorgestuurd naar een andere server. Dus bijvoorbeeld www.domein.nl/diemap/file.jpg word www.andereserver.nl/file.jpg. Maar ook dat www.domein.nl/diemap/map1/map2/file.html www.andereserver.nl/map1/map2/file.html wordt.

Met onderstaande code is het mogelijk de DocumentRoot te wijzigen maar ik zou niet weten hoe die om te bouwen naar wat ik graag wil.

code:
1
2
RewriteEngine on
RewriteRule   ^/$  /e/www/  [R]


Iemand die mij hiermee wat verder kan helpen?

[ Voor 5% gewijzigd door Verwijderd op 04-01-2005 20:15 ]


  • Spider.007
  • Registratie: December 2000
  • Niet online

Spider.007

* Tetragrammaton

Kwestie van zoeken; namelijk de 1e hit op Google :)
Given Rule                                      Resulting Substitution
----------------------------------------------  ----------------------------------
^/somepath(.*) otherpath$1                      not supported, because invalid!

^/somepath(.*) otherpath$1  [R]                 not supported, because invalid!

^/somepath(.*) otherpath$1  [P]                 not supported, because invalid!
----------------------------------------------  ----------------------------------
^/somepath(.*) /otherpath$1                     /otherpath/pathinfo

^/somepath(.*) /otherpath$1 [R]                 http://thishost/otherpath/pathinfo
                                                via external redirection

^/somepath(.*) /otherpath$1 [P]                 not supported, because silly!
----------------------------------------------  ----------------------------------
^/somepath(.*) http://thishost/otherpath$1      /otherpath/pathinfo

^/somepath(.*) http://thishost/otherpath$1 [R]  http://thishost/otherpath/pathinfo
                                                via external redirection

^/somepath(.*) http://thishost/otherpath$1 [P]  not supported, because silly!
----------------------------------------------  ----------------------------------
^/somepath(.*) http://otherhost/otherpath$1     http://otherhost/otherpath/pathinfo
                                                via external redirection

^/somepath(.*) http://otherhost/otherpath$1 [R] http://otherhost/otherpath/pathinfo
                                                via external redirection
                                                (the [R] flag is redundant)

^/somepath(.*) http://otherhost/otherpath$1 [P] http://otherhost/otherpath/pathinfo
                                                via internal proxy

---
Prozium - The great nepenthe. Opiate of our masses. Glue of our great society. Salve and salvation, it has delivered us from pathos, from sorrow, the deepest chasms of melancholy and hate


Dit topic is gesloten.