Re: [Zope] Redirecting all objects in a folder

2016-11-29 Thread Jesus Cea
On 21/11/16 05:46, Dan Gaibel wrote:
> How can I make it so that any object accessed under a particular folder
> gets redirected to another URL? 
> 
> In other words, someone going to the URL website.com/folder/page1.html
>  or website.com/folder/page2.html
>   (or any page in the /folder/
> directory) gets redirected to google.com . 

If your "folder" is not a folder at all but a script, you can get access
to the subpath and do whatever.

That is, if "folder" is a script, then
"http://website.com/folder/page.html"; will call the script called
"folder" with "page.html" as subpath parameter. You can do a redirect in
the script code, using the subpath or ignoring it, as you need.


-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Redirecting all objects in a folder

2016-11-20 Thread Dan Gaibel
How can I make it so that any object accessed under a particular folder gets 
redirected to another URL?

In other words, someone going to the URL 
website.com/folder/page1.html or 
website.com/folder/page2.html  (or any 
page in the /folder/ directory) gets redirected to 
google.com.

I’m running Zope 2.8.6 with ZServer. Would Virtual Host Monster work as a 
solution?

Thanks for any advice!

Dan
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )