My Mage installation resides in http://www.ourcorporatesite.tld/mage/ - the front end of this is inaccessible.
Through a multi-store setup, I run front-end shops on http://www.shop1.tld and http://www.shop2.tld etc.
I upload images in the admin back-end on the corporate site and hence, the location becomes http://www.ourcorporatesite.com/mage/media/catalog/product/cache/3/small_image/135x135/5e06319eda06f020e43594a9c230972d/f/p/imagename.jpg on all the front-end shops.
Is there any way I can rewrite those image urls so it looks as if they are on the same domain?
This both obfuscates where the Mage file resides and prevents SSL issues as well as making sure the front-end shop domain is referenced in Google images etc. and not my corporatesite.tld
If I change Base Media URL for this Website to its own domain, the image locations become as desired but obviously don’t load. I wonder if I can add a rewrite rule that checks for “media” in the URL and rewrites it to fetch these from the corporate site. Rewrite conditions aren’t my strongest point unfortunately…
Did anyone else solve this already?
Or perhaps, as they are on the same server, would a symlink suffice?