• Resolved dusanvr

    (@dusanvr)


    In our .htaccess file we have custom rewrite rule to avoid php running on static files requests:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !(robots.txt|sitemap.xml(.gz)?)
    RewriteCond %{REQUEST_FILENAME} .(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
    RewriteRule .* – [L]

    The rule is within <ifModule LightSpeed> section – because otherwise it does not execute.

    But of course as such it gets deleted on LigthSpeed saving.

    Is there a way to add such rules to LigthSpeed plugin to keep the behavior but avoid having the theme run it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    you can create your own <IfModule LiteSpeed> block and put your rules within this your own ifmodule block , not place it in the plugin generated ifmodule block

    Thread Starter dusanvr

    (@dusanvr)

    Indeed, that works properly now. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.