Re: Redirect help
Alan Seiden <[email protected]>
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <[email protected]> |
David, Because you used the “^” symbol, aren’t you attempting to start your match at the beginning of the string? Thus, you’d have to include the initial forward slash: i.e. “^/mailman/listinfo(.*)__;.*” I know you said your original ^listinfo regex worked, but I always thought the caret symbol meant you had to match the start of your string. Alan > On May 9, 2021, at 11:58 AM, David Gibbs via WEB400 <[email protected] <mailto:[email protected]>> wrote: > > Folks: > > Although this isn't specifically IBM i related, it is Apache httpd related. > > Can anyone see the problem with this directive? > > RewriteRule "^mailman/listinfo(.*)__;.*" "/mailmam/listinfo$1" [R=permanent,L] > > I'm trying to match requests that have garbage characters after the list name. For example: > > https://lists.midrange.com/mailman/listinfo/midrange-l__;!!NVq9dfhzMyHqTw!z410dqrmr6fXvUzgEcyb2bBGMYgWN3xOn7iWtWF8E-ADrINrLivrvNo2navKbtB3Tw$ <https://lists.midrange.com/mailman/listinfo/midrange-l__;!!NVq9dfhzMyHqTw!z410dqrmr6fXvUzgEcyb2bBGMYgWN3xOn7iWtWF8E-ADrINrLivrvNo2navKbtB3Tw$> > > In the current configuration, the following redirect works perfectly: > RewriteRule "^listinfo(.*)" "/mailman/listinfo$1" [R=permanent,L] > > Thanks! > > david > -- > I'm riding in the American Diabetes Association's Tour de Cure to raise money for diabetes research, education, advocacy, and awareness. You can make a tax-deductible donation to my ride by visiting https://mideml.diabetessucks.net. > > You can see where my donations come from by visiting my interactive donation map ... https://mideml.diabetessucks.net/map (it's a geeky thing). > -- > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/web400 > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/web400. > -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.