Toon posts:

[APACHE] redirect

Pagina: 1
Acties:

Verwijderd

Topicstarter
Het wil maar niet lukken om in apache te regelen dat als men op http://buxol.nl binnenkomt, dat apache je dan doorzet naar http://www.buxol.nl

ik dacht in de httpd.conf de volgende regel te plaatsen:

code:
1
RedirectPermanent http://buxol.nl http://www.buxol.nl


alvast bedankt,
Bux

  • Wacky
  • Registratie: Januari 2000
  • Laatst online: 27-08 21:39

Wacky

Dr. Lektroluv \o/

De online help van Apache geeft aan dat het Redirect is (zonder Permanent dus)

code:
1
Redirect /service http://foo2.bar.com/service


Of het met 2 HTTP url's ook werkt weet ik niet.

P.S. Heb je Apache wel opnieuw gestart na de wijziging in de config?

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 28-08 12:00

Janoz

Moderator Devschuur®

!litemod

Geen Programming & Webscripting probleem. Software configuratie hoort bij software..

PW -> SA

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


Verwijderd

Topicstarter
code:
1
Redirect http://buxol.nl http://www.buxol.nl


geplaatst in de httpd.config, apache herstart.
werkt helaas nog niet... ik zoek nog ff verder.

  • Wacky
  • Registratie: Januari 2000
  • Laatst online: 27-08 21:39

Wacky

Dr. Lektroluv \o/

Wat je ook kan doen is buxol.nl en www.buxol.nl een andere documentroot geven, en dan in die van buxol.nl een forward (HTML of PHP bestand) zetten met daarin de forward naar www.buxol.nl :Y)