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.

Relative URLS on a sub domain

August 11, 2010 1:30am

Subscribe [3]
  • #1 / Aug 11, 2010 1:30am

    Neo Mudaly

    90 posts

    Hi,

    I’ve set up a subdomain for an alternate version of my site using path.php.

    Everything works fine except for the urls—I can no longer use relative paths in my html that complicates things a little. I have to use absolute paths such as:

    {site_url}{image-relative-path}

    that results in:

    <a href="http://site.com//image.jpg">http://site.com//image.jpg</a>

    Note the // - It works, albeit semantically incorrect.
    Am I missing something in my path.php that could allow me to continue using relative paths?

  • #2 / Aug 11, 2010 10:23pm

    Brandon Jones

    5500 posts

    Hi Neo,

    I’m not sure all browsers will like the double-slash, but in any case, using absolute paths would indeed be the best option. There’s some more discussion on this here. Probably best to remove the leading slash from your existing image paths.

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

ExpressionEngine News!

#eecms, #events, #releases