I have put all images under store/images directory without making subdirectories.
However, my hosting just warned me to restructure the directories so that I will not have more than 1024 files in 1 directory. Otherwise my hosting account will be suspended.
My image files are named systematically, and I believe I can redirect the images easily by .htaccess
for example:
the original path is:
images/AAA001.jpg
I want to make it redirect to:
images/AAA/AAA001.jpg
and of course I want this rule to apply to:
AAA001-AAA999
BBB001-BBB999
CCC001-CCC999
...
...
I need the rule to search for the first few characters of the file, if it returns AAA, then redirect it to images/AAA/AAAxxx.jpg
How should I write the .htaccess?
Thanks in advance!


Reply With Quote

