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 <web400@xxxxxxxxxxxxxxxxxx <mailto:web400@xxxxxxxxxxxxxxxxxx>> 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: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.