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 <http://website.com/folder/page.html> or website.com/folder/page2.html <http://website.com/folder/page.html> (or any page in the /folder/ directory) gets redirected to google.com <http://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 _/_/ _/_/_/ _/_/_/ jcea@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ Twitter: @jcea _/_/ _/_/ _/_/_/_/_/ jabber / xmpp:jcea@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