Forum Moderators: bakedjake

Message Too Old, No Replies

To slash or not to slash

confusion over slashes in IMG SRC

         

mike73

8:10 pm on Jun 27, 2006 (gmt 0)

10+ Year Member



I recently migrated a site from one server to another, both run Linux. On the old server, all the SRC attributes on my image tags began with a forward slash. i.e.

<img src="/folder/img.gif">

on the new server, the images only work if I remove the initial forward slash:

<img src="folder/img.gif">

What the heck is going on, and how can I fix this easily?

Thanks in advance!

mike73

8:24 pm on Jun 27, 2006 (gmt 0)

10+ Year Member



btw, I'm previewing the site via Plesk. Could that be the problem? Will the images be okay when the site goes live?

mike73

8:34 pm on Jun 27, 2006 (gmt 0)

10+ Year Member



Yep, that was the problem.

Thanks everyone ;-)