• Resolved kaynarserkan

    (@kaynarserkan)


    Hello,

    I have a small problem. In my website, whenever i do on the feautre of “css minify”, css folder gives this link “/min/c9c08.css”.

    But there is no folder or document like this. Actually that folder is under “/wp-content/cache/css”. I wanna learn why this problem happens. Can you help me for solving this problem?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @kaynarserkan, when you turned ON CSS Minify, our engine will generate a minified CSS file to our cache folder, also we will add these script to .htaccess:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\w+)\.(css|js)$
    RewriteCond %1/wp-content/cache/$2/$1.$2 -f
    RewriteRule min/(\w+)\.(css|js) wp-content/cache/$2/$1.$2 [L]
    </IfModule>

    which rewrite the path: /min/ back to /wp-content/cache/, so the /min/ is just a virtual path for hiding the real file location.

    Thread Starter kaynarserkan

    (@kaynarserkan)

    Hello again,

    Thank you for your reply but unfortunately your solution didn’t work. It still see the min/ folder. But i noticed one thing. When i change the permalink as a “plain”, the problem is solved. And CSS folders are seen like this “.com/?/min/” but i need to use the permalink as a “post name”. When i set it as a “Post Name”, CSS is seen like this: https://30bujj3gthvh3vaswn30l8a2-wpengine.netdna-ssl.com/min/1244e.css

    And it cant find the folder. Actually the folder is at this way: https://30bujj3gthvh3vaswn30l8a2-wpengine.netdna-ssl.com/?/min/1244e.css.

    What can i do to solve this? Can you help me?

    My above reply is just explaining how the path rewrite works. Could you please provide?your Report Number, found in?WP Admin > LiteSpeed Cache > Report.

    Also, may I know which hosting server are you using? LiteSpeed Enterprise, OpenLiteSpeed or other panels(cPanel, Please)?

    Thread Starter kaynarserkan

    (@kaynarserkan)

    hi again.
    report number : QPSPXRHX

    i using wp-engine server.

    Hi @kaynarserkan, maybe there’re some rewrite rules set on you server/vhost which cause the redirection, so all the /min/ path will be redirected to /?/min/.

    But I find your site is using Post Name and the minified CSS is loading correctly after redirection, so may I know what is your concern on this issue?

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi,

    I’m going to mark this topic “Resolved,” due to lack of activity.

    If you still need help, please let us know.

    We’ll be happy to reopen the topic if necessary.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CSS Minify problem’ is closed to new replies.