Forum Moderators: phranque

Message Too Old, No Replies

.htaccess redirect 2 domains same database

need to redirect Joomla images folder

         

Rebmem

9:32 am on Apr 19, 2012 (gmt 0)

10+ Year Member



Hi

Client has 2 identical Joomla web sites on different domains.
Second domain is looking on first domains database.
I have a problem with images on second site.

Since images for articles after content copying are uploaded to only first domain, new articles on second domain have a broken link to image, because that images doesn't exist on second domain server.

Is there a way to tell Joomla on second domain to look into images folder on first domain?
Can I solve this problem with htaccess? Or is there maybe another solution?

Thanks in advance

g1smd

1:33 pm on Apr 23, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You could alter the img links on the pages of the second site to prefix them with domain name of where they really reside.

You could set up a proxy for image requests to the second server to silently fetch them from the first server. This will significantly slow image delivery and increase server workload.

You could set up a cron job to mirror the files from one server to the other as a repeating task.