【发布时间】:2013-01-05 04:43:29
【问题描述】:
我有一个包含 15000 张图片的文件夹,我决定将它们放在 10 个文件夹中。
我拥有 15000 张图片的初始文件夹网址是:
www.mysite.com/images/games/
新文件夹的网址是:
www.mysite.com/images/games/1/
www.mysite.com/images/games/2/
www.mysite.com/images/games/3/
www.mysite.com/images/games/4/
www.mysite.com/images/games/5/
www.mysite.com/images/games/6/
www.mysite.com/images/games/7/
www.mysite.com/images/games/8/
www.mysite.com/images/games/9/
www.mysite.com/images/games/10/
如何重定向我的图像以匹配其正确的文件夹以消除 404 错误?
【问题讨论】:
-
信息丢失!您必须解释哪些图像进入哪个文件夹。那是猜不透的。你的问题是
How can I redirect my images to match their correct folder to get rid of 404 errors.?但是,正确的文件夹是什么?` -
另外,您使用的是哪个 httpd?阿帕奇? Nginx? IIS?细节很重要。
-
我知道哪些图片放在哪个文件夹,但它是一个很大的列表,我无法在 htacess 中进行 15000 重定向,并且我正在使用 apache
标签: image .htaccess mod-rewrite redirect directory