301 redirect problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I've placed the following directive into an .htaccess stored in

redirect 301 /galleries/Cambodia/BKKtoSiemReap/
http://www.molon.de/galleries/Cambodia/Overland/BKKtoSiemReap /

If you enter this into the browser the redirect works fine:
http://www.molon.de/galleries/Cambodia/BKKtoSiemReap /

but this produces a 404 error:
(no slash at the end)

What do I need to do to make also the second request redirect to
galleries/Cambodia/Overland/BKKtoSiemReap/ ?

Alfred Molon
http://www.molon.de - Photos of Asia, Africa and Europe

Re: 301 redirect problem

Quoted text here. Click to load it

redirect 301 /galleries/Cambodia/BKKtoSiemReap
http://www.molon.de/galleries/Cambodia/Overland/BKKtoSiemReap /

or combine to one rule:

redirectmatch 301 ^/galleries/Cambodia/BKKtoSiemReap/?$
        http://www.molon.de/galleries/Cambodia/Overland/BKKtoSiemReap /

/? = optional /
^ + $ makes it an exact match

John Bokma                                      http://johnbokma.com/

Site Timeline