[thelist] Trouble with .htaccess Redirects and a Tip

Means, Eric D eric.d.means at boeing.com
Wed Apr 17 11:20:01 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.

-----Original Message-----
From: Bob Haroche [mailto:bharoche at usa.net]
Sent: Wednesday, April 17, 2002 11:10 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Trouble with .htaccess Redirects and a Tip


Hi Eric,

Thanks for the quick reply.

> Have you tried
> Redirect permanent /olddirectory http://myDomain.com/newdirectory/

Yes, that's my current sytnax (see my original post). Works for requests for
olddirectory but not for requests for olddirectory/.

> How about
> Redirect permanent /olddirectory/ http://myDomain.com/newdirectory/

Yes, tried that as well. That works for requests for olddirectory/ but
requests for olddirectory (no trailing slash) results in a 404. AND if I
include both your suggestions, then if someone requests olddirectory/ they
get olddirectory// -- and that nasty 404.

This is why I think I need some sort of wild carding and/or mod re-write.

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

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !



More information about the thelist mailing list