We've removed the redirect and created the jl.htm files where Apache can see 
them and display the HTML message. This works as planned.

Thx, Ed

-----Original Message-----
From: Mailman-Users [mailto:mailman-users-bounces+ed.beu=alaska....@python.org] 
On Behalf Of Beu, Ed (DOA)
Sent: Tuesday, June 14, 2016 9:35 AM
To: Mark Sapiro <m...@msapiro.net>; mailman-users@python.org
Subject: Re: [Mailman-Users] migrating current list links to mailman

Thanks very much for the information. Good to know I was on the right track, 
but even with your verification and better code, the redirect still takes me to 
the new /listinfo/listname (subscribe) page rather than the new jl.htm page.

I have put the new jl.htm at /var/lib/mailman/lists/listname/jl.htm

And, the redirection code at /etc/httpd/conf.d/mailman.conf
        # Uncomment the following line, to redirect queries to /mailman to the 
listinfo page (recommended).
        RedirectMatch ^/soalists/(.*)/jl.htm /mailman/listinfo/$1
        RedirectMatch ^/mailman[/]*$ /mailman/listinfo
        RedirectMatch ^[/]*$ /mailman/listinfo

I suspected the last two lines of RedirectMatch were causing the issue, but I 
get the same result if I remark them out.

Thanks again!
~Ed


-----Original Message-----
From: Mailman-Users [mailto:mailman-users-bounces+ed.beu=alaska....@python.org] 
On Behalf Of Mark Sapiro
Sent: Tuesday, June 14, 2016 9:05 AM
To: mailman-users@python.org
Subject: Re: [Mailman-Users] migrating current list links to mailman

On 06/13/2016 11:23 AM, Beu, Ed (DOA) wrote:
> 
> Example:            http:/list.domain/lists/listname/jl.htm                   
> <current>
>                              http:/list.domain/mailman/listinfo/listname      
>  <Mailman's link>
> 
> We would like some type of redirect in place on the new mailman server that 
> would simply display the new link (so that it can be copied) when someone 
> uses an old bookmark or hyperlink on a different website.


There are various ways to do this depending on what you want the user to
see.

If I understand the URL scheme above something in Apache like

RedirectMatch ^/lists/(.*)/jl.htm  /mailman/listinfo/$1

would serve to redirect http:/list.domain/lists/listname/jl.htm to
http:/list.domain/mailman/listinfo/listname for any 'listname', but if
you actually want to display something to the user, you could create a
replacement lists/listname/jl.htm containing something like

----------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>List listname - page has moved</title>
<meta http-equiv="refresh"
  content="5;
  URL=http:/list.domain/mailman/listinfo/listname">
</head>
<body>

<h2>Page Moved</h2>
<p>
The page for the listname list has moved.<br>
The new location is
<a href="http:/list.domain/mailman/listinfo/listname">
http:/list.domain/mailman/listinfo/listname</a>.<br>
You will go there automatically in 5 seconds.
</p>

</body>
</html>
----------------------------------------------------------

This will display the page and go to the new page after 5 seconds. You
would need one of these per list. If you want to change the delay,
change '5' to whatever you want in the

 content="5;

line and the

You will go there automatically in 5 seconds.

line. If you want the user to have to click, remove the

<meta http-equiv="refresh"
  content="5;
  URL=http:/list.domain/mailman/listinfo/listname">

lines and the "You will go there automatically" line.


------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to