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.

Setting up development site not going so smoothly

August 11, 2009 12:05pm

Subscribe [2]
  • #1 / Aug 11, 2009 12:05pm

    stevefink

    136 posts

    Hi folks,

    I’m working on creating an exact replica, delta the domain name, of our ExpressionEngine enabled site. This will be strictly for development purposes where we will modify the website as we see fit, then later copy it back into production.

    So far the process has gone fairly smoothly minus one issue. After changing the site_url variable to the new URL, the cached version of our CSS is omitting a slash in the absolute URLs. Meaning, I’m seeing stuff like this:

    http:/foo.example.com/some/stuff/

    This seems to only be happening in the .v.somenumber css implementation. I’m assuming this is just a simple cache. If I reference say

    http://foo.example.com/?css=templategroup/style.css the URLs are perfect. If I reference:

    http://foo.example.com/?css=templategroup/style.css.v.1234132412 the URLs are broken.

    I’ve tried clearing all cache from the administrative Utilities panel. No go there.

    Anyhow, hoping to get some insight into the issue. I’m kind of at a loss of stuff to Google / search the forums for at this point.

    Thanks!

  • #2 / Aug 11, 2009 12:29pm

    Ingmar

    29245 posts

    You should not reference such a .css directly, leave that to EE. If you want a direct link, use

    <a href="http://foo.example.com/index.php/templategroup/style.css">http://foo.example.com/index.php/templategroup/style.css</a>

    Otherwise, use

    {stylesheet=templategroup/style.css}
  • #3 / Aug 11, 2009 12:41pm

    stevefink

    136 posts

    Hi Ingmar,

    I’m not referencing my css as such. I was just using that as an example into hoping someone would know the real problem. The CSS is being referenced like this:

    <link rel=‘stylesheet’ href=’{stylesheet=mytplgroup/style.css}’ type=‘text/css’ media=‘screen’ />

    When expanded by EE, it uses http:/ instead of http://

  • #4 / Aug 11, 2009 1:32pm

    ender

    1644 posts

    check your Admin -> System Preferences -> General Configuration -> URL to the root directory of your site setting

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

ExpressionEngine News!

#eecms, #events, #releases