Forum Moderators: phranque
for some reason i get images called from every folder...so if say a file is
domain.com/gallery/image.gif
can htaccess be used to redirect all calls for image.gif from any folder to the correct one..
for say example
domain.com/wrongplace/image.gif
domain.com/wrongplace/verywrong/image.gif
have them all 310 to
domain.com/gallery/image.gif
Thanks
If so, it would be better to fix the existing code -- or to use server-relative or canonical links for the images, rather than to apply a band-aid that would make the images appear no matter what directory was requested ... Search "duplicate content penalty" for more information.
Server-relative link: <img src="/images/logo.gif">
Canonical link: <img src="http://www.example.com/images/logo.gif">
Be aware that the same problem can occur with external CSS and JavaScript files as well.
Jim