[thelist] Trouble with .htaccess Redirects and a Tip

Bob Haroche bharoche at usa.net
Wed Apr 17 12:13:00 CDT 2002


> Have you tried them both together?  That is,
> Redirect permanent /olddirectory/ http://myDomain.com/newdirectory/
> Redirect permanent /olddirectory http://myDomain.com/newdirectory/
>
> The first one should catch anyone who has a trailing slash, and the
> second should catch anyone who doesn't.

Yes, I've tried them together. Your suggestion is an intuitive one, but
Apache doesn't work like that. Instead, as I said in my last post, when I do
combine the two rules if someone types in olddirectory/ they're sent to
newdirectory//.

Regards,
Bob Haroche
O n P o i n t  S o l u t i o n s
http://www.OnPointSolutions.com







More information about the thelist mailing list