Redirecting URLs in Zope for renamed top-level folder
I plan to rename a top-level folder from A to B, but I'd like all users' old /A/path/to/stuff bookmarks to get redirected to /B/path/to/stuff. I've tried using Redirector, Rewriter, and JRedirector products, but I am unable to find the magic incantation to get any of them to do what I want! I mention the fact that it's a top-level folder in case that accounts for the unexpected behaviour I've seen. I'm using Zope 2.4.3 with Python 2.1.1. Has anyone succeeded in doing what I want? Hamish Lawson __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
hi, On Mon, 25 Feb 2002 09:57:41 +0000 (GMT) "Hamish Lawson" <hamish_lawson@yahoo.co.uk> wrote:
I plan to rename a top-level folder from A to B, but I'd like all users' old /A/path/to/stuff bookmarks to get redirected to /B/path/to/stuff.
simple way: put a dtml-method as index_html in your folder /A/path/to/stuff with content: <dtml-call "RESPONSE.redirect('/B/path/to/stuff)"> greetings, maik. -- Maik Jablonski Zentrum fuer Lehrerbildung Universitaet Bielefeld Germany
=?iso-8859-1?Q?Hamish_Lawson?= writes:
I plan to rename a top-level folder from A to B, but I'd like all users' old /A/path/to/stuff bookmarks to get redirected to /B/path/to/stuff. The easiest way would be an Apache rewrite rule redirecting to the new location.
The next easiest would be a Python Script bindung "traversal_subpath" and redirecting accordingly. Dieter
participants (3)
-
Dieter Maurer -
Hamish Lawson -
Maik Jablonski