image issue with friendly URLs switched on

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
scotch33
Dev Team Member
Dev Team Member
Posts: 284
Joined: Tue Feb 14, 2006 9:56 pm

image issue with friendly URLs switched on

Post by scotch33 »

Hello,
I am getting an issue with a coupel of sites in 10.3 that have mod_rewrite switched on in the config alonfg with the appropriate .htaccess file.

Images are not addressing correctly... For example..

In a top page the address for an image is /uploads/images/image.jpg.

However in a chiled page, it is prepending the address with the pretty urls element, so for example if in a page which is the child of 'services' the address of the image gets changed to 'services/uploads/images/image.jpg' which breaks it. thus images are not showing in child pages.

How can I get around this odd quirk?

Thanks!

John
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: image issue with friendly URLs switched on

Post by Rolf »

Hi John

Do you have the {metadata} tag in the head of your template?
It provides the base url to your template.

grtz. Rolf :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
scotch33
Dev Team Member
Dev Team Member
Posts: 284
Joined: Tue Feb 14, 2006 9:56 pm

Re: image issue with friendly URLs switched on

Post by scotch33 »

aha - no - I am using seo tools which replaces it - makes sense now. I'll hand add that metatag.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: image issue with friendly URLs switched on

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”