[support] Multisite Paths

Kenneth Jacker khj at be.cs.appstate.edu
Sun Dec 16 20:37:09 UTC 2012


[ Ubuntu-12.04.1; Drupal-7.17 ]

*ONE*
I have a directory of images at,

   /var/www/sites/example.com/images

and a "Basic Page" node with this HTML within it:

   <a href="sites/example.com/images/jim.jpg">Jim</a>

Going to the page and clicking on the "Jim" link, does display the
image correctly.  However, the URL in my browser shows this:

   http://example.com/sites/example.com/images/jim.jpg

Shouldn't that be:

   http://example.com/images/jim.jpg ?

Why the extra, initial "example.com/sites"?


*TWO*
If I use this anchor instead,

    <a href="images/jim.jpg">Jim</a>   

the browser bar displays

    http://example.com/images/jim.jpg

But the page produces this error message instead of the JPEG:

     The requested URL "/images/jim.jpg" was not found on this server.


Any help that you might provide is appreciated!
-- 
Prof Kenneth H Jacker       khj at cs.appstate.edu
Computer Science Dept       www.cs.appstate.edu/~khj
Appalachian State Univ
Boone, NC  28608  USA        


More information about the support mailing list