• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Image path??

D

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. http://212.241.222.8/ - but Plesk does not or is there a way to configure it to allow this?

Thanks

Darren
 
Back
Top