We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3157
    • 6 Posts
    You said that I needed to make sure the css file was in the right directory as the .htaccess comments said, and it is.
      • 33337
      • 3,975 Posts
      Hi BB,

      Please use this .htaccess:
      # MODx supports friendly URLs via this .htaccess file. In order to use it, you must change the 
      # file name from ht.access to .htaccess. If you don't want to use friendly URLs, you can comment 
      # the three Rewrite directives out with pound signs (like the beginning of this line).
      #
      # Make sure RewriteBase points to the directory where you installed MODx.
      # E.g., "/" if your installation is in your root web documents directory (it comes this way by 
      # default) or "/MODx" if your installation is in a MODx subdirectory, per the comments below. You
      # must serve web pages via Apache with mod_rewrite to be able to use this functionality.
      #
      # The last two blocks of rules at the bottom of this .htaccess file address anamolies with IE 
      # for Windows PCs and the way in which it caches images, which causes a distracting flicker in 
      # background images when links are hovered on the page.
      #
      # The output compression directives immediately below serve to speed up delivery of web pages, 
      # and may also be optionally commented out.
      
      php_flag zlib.output_compression On
      php_value zlib.output_compression_level 5
      
      # Rewrite directives here for SEF (Search Engine Friendly) URLs
      
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      
      # If your MODx installation is in a subdirectory, change the following line to match the physical
      # path to the "root" of the site as follows:
      
      RewriteRule ^(.*)$ /dev/temp/1/index.php?q=$1 [L,QSA]
      
      # This following two sections stops screen flicker in IE on rollovers (Bad IE Win, Bad!).
      # Comment these sections out if you do not need them. They can result in having to force reload
      # pages when developing sites and changing images frequently to see your changes. 
      
      #ExpiresActive On
      #ExpiresByType image/gif A2592000
      #ExpiresByType image/jpeg A2592000
      #ExpiresByType image/png A2592000
      
      #BrowserMatch "MSIE" brokenvary=1
      #BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
      #BrowserMatch "Opera" !brokenvary
      #SetEnvIf brokenvary 1 force-no-vary
      


      You’ve doubled the rewrite rule in .htaccess, but the code above is fixed.

      And make sure your CSS is in assets/templates/default/site.css, to test it, visit this url: http://www.elitegfx.com/dev/temp/1/assets/templates/default/site.css it MUST show your CSS file in text format.

      Hope this helps.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 3157
        • 6 Posts
        There we go now it works smiley

        I was woundering why there was a duplicate of that line... thought it was something to do with what it turns it into or something huh I really do need / want to learn mod_rewrite rolleyes

        Thanks for your help grin