There might not be a right answer, so opinions are welcomed.
My site has a section for a product catalog /catalog
and products are listed in that directory /catalog/product-name
. Should associated files and images be visible as a sub-directory (/catalog/product-name/image/img1.png
), in the same directory (/catalog/product-name/img1.png
), or in a central directory (/images/img1.png
)?
This is entirely for the sake of SEO structure since the images are stored as blobs in RAM and accessed using a Hash table.
Also, my initial goal was to allow the same image to be accessed using a multitude of names (ex: product-name-profile-shot.png
would be an alias for img1.png
), but with there being no form of canonical linking for images, do I run the risk of looking spammy if the same image appears in multiple locations with different urls?