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.

Absolute paths to stylesheets not working

July 23, 2013 4:28pm

Subscribe [2]
  • #1 / Jul 23, 2013 4:28pm

    cballenar

    4 posts

    Hey,

    I ran into a problem when trying to setup my stylesheets and javascripts through absolute paths. I can’t access them and I keep getting 404 errors, I’ve reviewed the paths many times for errors and can’t seem to find any. I’ve also tried linking them with the site url variable with no luck.

    After a search online I found a few posts that seemed to be discussing the same problem but with no actual answer. From my understanding I don’t need to do anything special with the files, such as putting them in the database or anything like it, so I can’t understand what’s going on.

    I’m running my dev server locally through MAMP Pro.
    My current folder structure is:
    - sandbox.dev/assets/css
    - sandbox.dev/assets/js
    - sandbox.dev/assets/images

    Has anyone experienced this before?

  • #2 / Jul 23, 2013 5:39pm

    thejame

    24 posts

    What is the structure of your EE installation (all the way to the system directory)?

  • #3 / Jul 23, 2013 8:36pm

    cballenar

    4 posts

    I moved system above the root so it looks like this:

    - project
    - - system
    - - www (where MAMP is pointed to)
    - - - assets
    - - - - css
    - - - - js
    - - - - img
    - - - images
    - - - themes
    - - - index.php
    - - - admin.php

  • #4 / Jul 24, 2013 3:22am

    rm_beginner

    11 posts

  • #5 / Jul 24, 2013 11:47am

    cballenar

    4 posts

    I just figured out what was happening. The problem lied in my .htaccess file. It was tailored to a different folder structure and therefore it didn’t include my assets folder. All good now.

    Thanks for the help.

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

ExpressionEngine News!

#eecms, #events, #releases