I have two sites running as vhosts (one up, one under development) that share about 50% of their content and php code as well as using the same database and homegrown cart. The sites are running under apache 1.3.20, php 4.1.1 and mysql 3.23.47.
I would like to use indirect file paths to reference content and images from one vhost to the other. No problem for my php includes but my HTML relative paths don't work.
When I try to use a relative path like "../../magazineframes.com/htdocs/images/continue.jpg" from comicframes.com it resolves (per the error log) to "apache/vhosts/comicframes.com/htdocs/magazineframes.com/htdocs/images/continue.jpg" when what I want is "apache/vhosts/htdocs/magazineframes.com/htdocs/images/continue.jpg".
The only thing I can find on this is one web site that says "You can still use relative paths as long as the file is within your own server space". By this I would think using relative paths across vhosts is not possible? Could someone tell me if this is right or if there is anyway to use relative paths across vhosts.
My alternative is to replicate content in both vhosts, which I would much prefer not to do.
BTW, I don't want to combine the sites. One is for custom framing of men's magazines and has about 400 pinup magazine covers. This is an 'R' rated site. The other will be for custom framing of comics and will be a 'G' rated site.
Thanks
I would like to use indirect file paths to reference content and images from one vhost to the other. No problem for my php includes but my HTML relative paths don't work.
When I try to use a relative path like "../../magazineframes.com/htdocs/images/continue.jpg" from comicframes.com it resolves (per the error log) to "apache/vhosts/comicframes.com/htdocs/magazineframes.com/htdocs/images/continue.jpg" when what I want is "apache/vhosts/htdocs/magazineframes.com/htdocs/images/continue.jpg".
The only thing I can find on this is one web site that says "You can still use relative paths as long as the file is within your own server space". By this I would think using relative paths across vhosts is not possible? Could someone tell me if this is right or if there is anyway to use relative paths across vhosts.
My alternative is to replicate content in both vhosts, which I would much prefer not to do.
BTW, I don't want to combine the sites. One is for custom framing of men's magazines and has about 400 pinup magazine covers. This is an 'R' rated site. The other will be for custom framing of comics and will be a 'G' rated site.
Thanks