joined:Oct 19, 2011
Was having trouble when a client registered a new domain name and because the server was not set up in parallel, it had to point to a sub directory inside of the main domain structure. Because of that, the images had to be routed through the main domain. While I could just add the path hard-coded or echoed out in php, I was looking for a more elegant solution.
Was finally able to get the images from the sub directory to show up using an htaccess:
RewriteRule ^(.*)http://newdomain.com$(.*) http://accountdomain.com/newsitefolder/$2 [L,R=301]
Everything was great until I looked at the gallery page. Those images are NOT showing.
The first site is broken up into three parts, for three territories. Each with most of the same stuff in each directory, but much of the text is different.
I had a directory that held the images for the gallery outside of the three territories so they could share them.
I referenced their path with ../gallerypics/image1.jpg in both js and the photo page itself.
Now with the rewrite rule, I'm lost as to why they are not showing up nor how to fix it.
I'm very inexperienced with htaccess, so please explain everything as you go.
[edited by: bill at 4:12 am (utc) on Apr 3, 2013]
[edit reason] unlinked example [/edit]