1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Image path??

Discussion in 'Plesk for Linux - 8.x and Older' started by darrensw@, May 17, 2006.

  1. darrensw@

    darrensw@ Guest

    When I use site preview to check my site I am running into problems with image paths...

    On all my pages I use a header and footer which are PHP includes.

    My images are stored in /var/www/vhosts/mydomain.com./httpdocs/auk/images/

    So, index.html pulls in an include which has an <IMG SRC> to my logo:

    <IMG SRC="auk/images/misc/headershop_01.gif">

    Now, as i move around the site this becomes a wrong SRC because if i go into say /auk/static/members.html, the tag will look for the /auk/images/ directory within /auk/static/ - and it's of course not there - see below:

    What i normally do when i create any <IMG SRC> is use:

    <IMG SRC="/auk/images/misc/headershop_01.gif">

    Note forward slash before auk/images/ - this tells the page that /auk/images/ is as far back as you go in httpdocs, which it is.

    So, how can I test all my links and images etc when i can only see my site by using the site preview in Plesk? It's usual for a server to be able to show a site while it's being created at it's ip address, e.g. - but Plesk does not or is there a way to configure it to allow this?