Hi, Via htaccess how is it possible to redirect images to an external url. Example => my images path local is /images/products/productname.jpg and the external is http://www.productsurl.com/images/productname.jpg Can someone helps me with this ? Cheers, Kris
I assume you are using Apache. Put a .htaccess file with the following code in the "products" directory: RewriteEngine on rewritecond %{http_host} ^.*$ rewriterule ^productname.jpg/?$ http://www.productsurl.com/images/productname.jpg [R=301,L]
Do you really need to use .htaccess to do this? Why not just: <a href="http://www.sitename.com"><img src="imagename.jpg" border="0"></a> Code (markup): Or, am I not understanding you correctly?