ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Is full path required?

January 26, 2010 1:25pm

Subscribe [2]
  • #1 / Jan 26, 2010 1:25pm

    django6

    124 posts

    I’ve come across this problem several times now with EE websites. There will be some relative path that is working just fine, and then I change some seemingly unrelated thing and now the relative path doesn’t work and I have to put {site_url} in front of all the paths. This happened recently after adding the lg-htaccess extension.

    src=“photo-gallery/...”  was working, but now it doesn’t work and I need to change them all to ...

    src=”{site_url}photo-gallery/...”


    Any thoughts or suggestions about what the best practice and most consistent syntax should be?

  • #2 / Jan 26, 2010 5:02pm

    Ingmar

    29245 posts

    Yes, you should be using full paths at all times.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases