We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19734
    • 0 Posts
    When I add:

    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

    I get the error.

    Seems to be fine when I have:

    RewriteEngine On
    RewriteBase /

    RewriteCond %{HTTP_HOST} !^www\.domain\.co.uk [NC]
    RewriteRule (.*) http://www.domain.co.uk/$1 [R=301,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
      • 19302
      • 6 Posts
      yup - so it looks like either mod_expires is not installed / working.

      You don’t seem to have any css image rollovers, so I don’t think you *need* it, but, you should still look at getting mod_expires working, which is better than the below i think

      You should be caching images etc, so in the mean time you could try this : second post down on this forum has a reasonable explanation and directives that could help ?

      http://www.webmasterworld.com/apache/4108533.htm

      also, can you try clearing the cache on your site?
        • 19734
        • 0 Posts
        First off thanks ever so much for your help and more importantly your time.

        I have cleared the cache OK (site > clear cache), but am a mere designer with some front end experience and the am little lost when I read the second post from the link that you posted.

        Is it a problem with the install and would it help if I reinstalled modx? Is there a problem with the hosting requirements?
          • 19302
          • 6 Posts
          ok,np :

          try this in your .htaccess :

          RewriteEngine On
          RewriteBase /
          
          RewriteCond %{HTTP_HOST} !^www\.ammatherapy\.co.uk [NC]
          RewriteRule (.*) http://www.ammatherapy.co.uk/$1 [R=301,L]
          
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
          
          <FilesMatch "\.(gif|jpe?g|png|flv|swf|ico)$">
          Header set Cache-Control: "max-age=1296000"
          </FilesMatch>
          
          <FilesMatch "\.(js|css|pdf)$">
          Header set Cache-Control: "max-age=604800"
          </FilesMatch>
          


          - Go to your /core/cache/ directory, and delete the stuff in there through ftp.
          - Make sure there’s none of the expires stuff in your .htaccess

            • 19734
            • 0 Posts
            Well it seems all good. But I just tried to install tinymce, and had this error >

            Console running...
            Attempting to install package with signature: tinymce-4.3.0-rc1
            Package found...now preparing to install.
            xPDOZip: Error opening archive at /www/sites/611/7dc/www.domain.co.uk/web/core/packages/tinymce-4.3.0-rc1.transport.zip
            PHP warning: ZipArchive::extractTo() [ziparchive.extractto]: Invalid or unitialized Zip object
            PHP warning: ZipArchive::close() [ziparchive.close]: Invalid or unitialized Zip object
            Could not unpack package /www/sites/611/7dc/www.domain.co.uk/web/core/packages/tinymce-4.3.0-rc1.transport.zip to /www/sites/611/7dc/www.domain.co.uk/web/core/packages/. SIG: tinymce-4.3.0-rc1
            Could not install package with signature: tinymce-4.3.0-rc1
             		 
             


            I have installed various versions of Modx (evo & revo) and never really had any problems, and am not sure why this time is different. Are the problems related?

            Do you think I should reinstall? Or are they with the hosting requirements?
              • 19302
              • 6 Posts
              eep, in all honesty, I’m not sure about that.

              double check (if in doubt, email your hosting provider) these -> http://modx.com/revolution/developer/requirements/
                • 35195
                • 1 Posts
                The problem that it cannot install tinymce may be because the zip file is corrupt.

                Try navigating to the zip file, in your case: /www/sites/611/7dc/www.ammatherapy.co.uk/web/core/packages/tinymce-4.3.0-rc1.transport.zip, then delete tinymce-4.3.0-rc1.transport.zip.

                Then, download the zip file from the ModX site : http://modx.com/extras/package/tinymce
                and place it in the folder then try installing.
                  • 19734
                  • 0 Posts
                  First off, I would like to say a big thankyou guys for committing time and effort, hopefully this thread will help others too, nice one.

                  Secondly, Tinymce, seems like others have had problems - there is a setting for dodgy package management that needs to be set to yes.

                  If you’re having issues installing, make sure you have the latest ZipArchive extension for PHP, and that it’s properly configured, or set the "archive_with" System Setting to Yes.

                  Worked fine for me. hopefully next time I am here it will be to help others. Cheers.

                  If you are in London, I will buy you guys a nice cold beer.
                    • 19302
                    • 6 Posts
                    haha, np bro, airfreight to new zealand tongue

                    and make sure you remove the phpinfo.