I need to redirect only 1 file on my site. Actually its an image becuase it would take forever to get everything to update there urls so trying to have it done on my site. trying to get all links to domain.com/logo.jpg to point to: domain.com/images/logo.jpg This way no mater what url they put in their coding it will still load the image. Been trying to do it with htaccess but apparently everything I'm trying isn't working at all. Not sure if this effects anything but wordpress is installed in the rule of the domain as well.
Finally it worked. TY. One problem. Is thre any way to have this only happen with a certain domain. I have anothr domain parked on it and I don't want i to do this with boh domains.
You can do that using RewriteCond %{HTTP_HOST} ^domain\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.domain\.com$ RewriteRule ^logo\.jpg$ /images/logo.jpg [R=301,L] Code (markup):