smartoptimizer heeeelp

hi to all,



all day long I tried to run the damned thing:confused: …When I copy/paste SO .htaccess to the CS Cart one, it brakes my CSS and JS.

  1. SO is installed in the store directory where var, skins, etc. folders are
  2. File Permissions of SO are set to 644 for files, 755 for folders and 777 for cache
  3. I have cleared the cache of CS Cart after the installation of SO. Strange is that the cache folder of SO is empty even I play with the website.

    Please help me with any ideas.



    Here is how looks like my .htaccess after pasting the code of SO within it:

    DirectoryIndex index.html index.php





    ExpiresActive On

    ExpiresDefault “access plus 10 years”







    RewriteEngine On



    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(..(js|css))$ smartoptimizer/?$1





    RewriteCond %{REQUEST_FILENAME} -f

    RewriteRule ^(.
    .(js|css|html?|xml|txt))$ smartoptimizer/?$1







    RewriteCond %{REQUEST_FILENAME} -f

    RewriteRule ^(.*.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt))$ smartoptimizer/?$1







    FileETag none







    RewriteEngine on

Some hostings require RewriteBase to be uncommented

Example:

Your store url is [url]http://www.yourcompany.com/store/cart[/url]

So “RewriteBase” should be:

RewriteBase /store/cart

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php?sef_rewrite=1 [L,QSA]



RewriteCond %{REQUEST_FILENAME} ./catalog/.

RewriteCond %{REQUEST_FILENAME} -d

RewriteCond %{REQUEST_FILENAME}/index.html !-f

RewriteRule . index.php?sef_rewrite=1 [L,QSA]




For security reasons, Option all cannot be overridden.

#Options All -Indexes

Options ExecCGI Includes IncludesNOEXEC IncludesNOEXEC MultiViews SymLinksIfOwnerMatch Indexes -Indexes

up

anybody?

Mine looks like:



DirectoryIndex index.html index.php





RewriteEngine on

Some hostings require RewriteBase to be uncommented

Example:

Your store url is [url]http://www.yourcompany.com/store/cart[/url]

So “RewriteBase” should be:

RewriteBase /store/cart

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php?sef_rewrite=1 [L,QSA]



RewriteCond %{REQUEST_FILENAME} ./catalog/.

RewriteCond %{REQUEST_FILENAME} -d

RewriteCond %{REQUEST_FILENAME}/index.html !-f

RewriteRule . index.php?sef_rewrite=1 [L,QSA]







ExpiresActive On

ExpiresDefault “access plus 10 years”







RewriteEngine On



RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(..(js|css))$ smartoptimizer/?$1





RewriteCond %{REQUEST_FILENAME} -f

RewriteRule ^(.
.(js|css|html?|xml|txt))$ smartoptimizer/?$1







RewriteCond %{REQUEST_FILENAME} -f

RewriteRule ^(.*.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt))$ smartoptimizer/?$1







FileETag none









Also I think you have to manually create the cache folder in the smartoptimizer dir, I cannot remember though!

thanks, but there is built in cache when you extract SO files. I’ve tried with your .htaccess and same thing my java and css are messed :frowning: Somebody with same problem and possible solution?

Not sure if this is the solution to your answer, but we also had a simliar problem.



Try checking your config.local.php file and look for this setting:


'js_compression' => true, // enables compession to reduce size of javascript files




and change it to false.

10x jgaris, but it is already “false”…:frowning:

I am sure there are more people with my problem, so please share your solutions…

anybody?

I don’t use SmartOptimizer but have you given any thought to trying Webo Site Speedup. I installed this about a month ago and it made a huge change in my sites speed. You may want to give it a try.