Page 1 of 1

[Solved] Image not shown due to path problem in 1.11.2

Posted: Sun Sep 23, 2012 10:27 am
by PBlue
I doubt what is the correct method to specify relative path for images in TinyMCE and let CMSMS with Pretty URL show the image with correct path added.

My problem currently:
(1) in the content page, I use "uploads/image/myimage.jpg" for Image URL

(2) The image does not show up because the path of the image becomes:

"http://mysite/my-pretty-url-article/upl ... yimage.jpg

and the correct path for the image should be:

"http://mysite/uploads/images/myimage.jpg

I have to use relative paths because my sites will be put into several servers and I will only need to change the server name in config.php and it works.

My .htaccess is as below:

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On

#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

Please advise what I shall do.

Re: Image not shown due to path problem in 1.11.2

Posted: Sun Sep 23, 2012 1:47 pm
by Rolf

Re: Image not shown due to path problem in 1.11.2

Posted: Sun Sep 23, 2012 6:14 pm
by Dr.CSS
You upgraded from a very old version, I'm thinking that at one time you had FCKeditor and it made those full paths, you may need to go to every page and rechoose the images or remake the image paths...

Re: Image not shown due to path problem in 1.11.2

Posted: Mon Sep 24, 2012 1:35 pm
by PBlue
Rolf wrote:You did step 3 from http://docs.cmsmadesimple.org/configuration/pretty-url?

grtz. Rolf
Yes, you are right! The source of problem is {metadata} does not exist in my HTML template.

BTW, I have to manually change the path for the images being the "penalty" for not being update constantly :(

Thanks a lot for your help!