folder redirects made easy!
Submitted by: runyaga
Last Edited: 2005-11-25
Category: Python(Script)
|
| Average rating is:
0.0 out of 5
|
(0 ratings) |
|
Description:
I just renamed a folder from EEP to Proxy. We have loads of content in EEP. I simply renamed the fodler from EEP to Proxy. But what about all those links pointing to files in EEP? Here is a simple redirect script!
|
Source (Text):
response=context.REQUEST.RESPONSE
baseurl='http://www.enfoldsystems.com/Products/Proxy'
return response.redirect(baseurl + '/'.join(traverse_subpath))
|
Explanation:
http://www.enfoldsystems.com/Products/EEP/Features will now be redirected
to http://www.enfoldsystems.com/Products/Proxy/Features
|
Comments:
No Comments
|