0

So, i have a website with new content in my root directory. I also have a bunch of old content which in the interest of keeping things clean, that I would like to stuff in a separate directory (or at least a sub directory), ie root/oldresources/. What I would like to configure is for an incoming request, to first attempt to find the content in the root folder, and if it does not find it there, to look at the same relative path inside oldresources. So if someone went to http://mysite.org/images/shapes.png, it would first look for root/images/shapes.png, and serve that if it found it. If it can't find it, I would like to try and serve root/oldresources/images/shapes.png. If it can't find it there, 404 like usual.

I've been googling around for the appropriate way to set this, but can't find anything.

4

1 回答 1

1

我相信您可以通过创建一个处理 RQ_MAP_PATH 通知的模块来实现这一点。我会更具体,但我从未真正尝试过这样做。

于 2013-10-14T16:41:26.743 回答