Posted by xiaomo on October 8, 2012 at 1:01am
I placed an image in the public html folder, I could access it through www.mysite.com/image/test01 but I could not access it through image/test01. Does anyone know why? Many thanks
I placed an image in the public html folder, I could access it through www.mysite.com/image/test01 but I could not access it through image/test01. Does anyone know why? Many thanks
Comments
=-=
from where are you trying to use the relative url image/test01? the theme? a piece of content? a block?
Thanks for the quick reply,
Thanks for the quick reply, I'm trying to use this image on a block for sidebar
=-=
then you are better off using an absolute url as the folder path to the image will change based on the url path of the page the block is set on.
ie: mysite.com/content/title and mysite.com/content/someothepartoftheurl/title can cause confusion for blocks as they aren't nodes.
though to be honest, I'd avoid adding an image to the filesystem and placing it in a block in the way that you are. Is there a specific reason you are choosing to perform the task in this way?