• the advanced configuration for apache doesn’t seem to work. I saw another support ticket with a similar problem.

    I have tried everything. any ideas?

    here is my htaccess

    
    
    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.3.5]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # BEGIN Gzip
    <IfModule mod_deflate.c>
      # Compress HTML, CSS, JavaScript, Text, XML and fonts
      AddOutputFilterByType DEFLATE application/javascript
      AddOutputFilterByType DEFLATE application/rss+xml
      AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
      AddOutputFilterByType DEFLATE application/x-font
      AddOutputFilterByType DEFLATE application/x-font-opentype
      AddOutputFilterByType DEFLATE application/x-font-otf
      AddOutputFilterByType DEFLATE application/x-font-truetype
      AddOutputFilterByType DEFLATE application/x-font-ttf
      AddOutputFilterByType DEFLATE application/x-javascript
      AddOutputFilterByType DEFLATE application/xhtml+xml
      AddOutputFilterByType DEFLATE application/xml
      AddOutputFilterByType DEFLATE font/opentype
      AddOutputFilterByType DEFLATE font/otf
      AddOutputFilterByType DEFLATE font/ttf
      AddOutputFilterByType DEFLATE image/svg+xml
      AddOutputFilterByType DEFLATE image/x-icon
      AddOutputFilterByType DEFLATE text/css
      AddOutputFilterByType DEFLATE text/html
      AddOutputFilterByType DEFLATE text/javascript
      AddOutputFilterByType DEFLATE text/plain
      AddOutputFilterByType DEFLATE text/xml
    
      # Remove browser bugs (only needed for really old browsers)
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
      Header append Vary User-Agent
    </IfModule>
    # END Gzip	
    
    # BEGIN Expire headers
    
    <ifModule mod_expires.c>
       ExpiresActive On
       ExpiresDefault "access plus 5 seconds"
       ExpiresByType image/x-icon "access plus 604800 seconds"
       ExpiresByType image/jpeg "access plus 604800 seconds"
       ExpiresByType image/png "access plus 604800 seconds"
       ExpiresByType image/gif "access plus 604800 seconds"
       ExpiresByType application/x-shockwave-flash "access plus 604800 seconds"
       ExpiresByType text/css "access plus 604800 seconds"
       ExpiresByType text/javascript "access plus 604800 seconds"
       ExpiresByType application/javascript "access plus 604800 seconds"
       ExpiresByType application/x-javascript "access plus 604800 seconds"
       ExpiresByType font/truetype "access plus 604800 seconds"
       ExpiresByType font/opentype "access plus 604800 seconds"
       ExpiresByType application/x-font-woff "access plus 604800 seconds"
       ExpiresByType image/svg+xml "access plus 604800 seconds"
       ExpiresByType application/vnd.ms-fontobject "access plus 604800 seconds"
       ExpiresByType text/html "access plus 600 seconds"
       ExpiresByType application/xhtml+xml "access plus 600 seconds"
    </ifModule>
    
    # END Expire headers
    # BEGIN Cache-Control Headers 
    	<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault A0
    
    <FilesMatch "\.(html|php|txt|xml|js)$">
    ExpiresDefault A31536000
    </FilesMatch>
    
    <FilesMatch "\.(css)$">
    ExpiresDefault A31536000
    </FilesMatch>
    
    <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$">
    ExpiresDefault A31536000
    </FilesMatch>
    
    <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
    ExpiresDefault A31536000
    </FilesMatch>
    </IfModule>
    
    <IfModule mod_headers.c>
      <FilesMatch "\.(html|php|txt|xml|js)$">
       Header set Cache-Control "max-age=31536000"
      </FilesMatch>
    
      <FilesMatch "\.(css)$">
       Header set Cache-Control "max-age=31536000"
      </FilesMatch>
    
      <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$">
       Header set Cache-Control "max-age=31536000"
      </FilesMatch>
    
      <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
       Header set Cache-Control "max-age=31536000"
      </FilesMatch>
    </IfModule>
    
    #END Cache-Control Headers
    
    # BEGIN Cache Enabler
    
    <IfModule mod_rewrite.c>
        <IfModule mod_setenvif.c>
            RewriteEngine On
            RewriteBase /
    
            # cache directory
            SetEnvIf Host ^ CE_CACHE_DIR=/wp-content/cache/cache-enabler
    
            # default cache keys
            SetEnvIf Host ^ CE_CACHE_KEY_SCHEME http-
            SetEnvIf Host ^ CE_CACHE_KEY_DEVICE
            SetEnvIf Host ^ CE_CACHE_KEY_WEBP
            SetEnvIf Host ^ CE_CACHE_KEY_COMPRESSION
    
            # scheme cache key
            RewriteCond %{HTTPS} ^(on|1)$ [OR]
            RewriteCond %{SERVER_PORT} =443 [OR]
            RewriteCond %{HTTP:X-Forwarded-Proto} =https [OR]
            RewriteCond %{HTTP:X-Forwarded-Scheme} =https
            RewriteRule ^ - [E=CE_CACHE_KEY_SCHEME:https-]
    
            # device cache key
             SetEnvIf User-Agent "(Mobile|Android|Silk/|Kindle|BlackBerry|Opera Mini|Opera Mobi)" CE_CACHE_KEY_DEVICE=-mobile
    
            # webp cache key
            # SetEnvIf Accept image/webp CE_CACHE_KEY_WEBP=-webp
    
            # compression cache key
             <IfModule mod_mime.c>
                 SetEnvIf Accept-Encoding gzip CE_CACHE_KEY_COMPRESSION=.gz
                 AddType text/html .gz
                 AddEncoding gzip .gz
             </IfModule>
    
            # get cache file
            SetEnvIf Host ^ CE_CACHE_FILE_DIR=%{ENV:CE_CACHE_DIR}/%{HTTP_HOST}%{REQUEST_URI}
            SetEnvIf Host ^ CE_CACHE_FILE_NAME=%{ENV:CE_CACHE_KEY_SCHEME}index%{ENV:CE_CACHE_KEY_DEVICE}%{ENV:CE_CACHE_KEY_WEBP}.html%{ENV:CE_CACHE_KEY_COMPRESSION}
            SetEnvIf Host ^ CE_CACHE_FILE=%{ENV:CE_CACHE_FILE_DIR}/%{ENV:CE_CACHE_FILE_NAME}
    
            # check if cache file exists
            RewriteCond %{DOCUMENT_ROOT}%{ENV:CE_CACHE_FILE} -f
    
            # check request method
            RewriteCond %{REQUEST_METHOD} =GET
    
            # check permalink structure has trailing slash
            RewriteCond %{REQUEST_URI} /[^\./\?]+(\?.*)?$
            # check permalink structure has no trailing slash
            # RewriteCond %{REQUEST_URI} /[^\./\?]+/(\?.*)?$
    
            # check excluded query strings
            RewriteCond %{QUERY_STRING} !^(?!(fbclid|ref|mc_(cid|eid)|utm_(source|medium|campaign|term|content|expid)|gclid|fb_(action_ids|action_types|source)|age-verified|usqp|cn-reloaded|_ga|_ke)).+$
    
            # check excluded cookies
            RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_
    
            # deliver cache file
            RewriteRule ^ %{ENV:CE_CACHE_FILE} [L]
        </IfModule>
    </IfModule>
    
    # END Cache Enabler
    
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    x-cache-handler: cache-enabler-engine still displays. its doing something though, as I see a big speed index decrease, but the pages still seem to be using php

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

  • The topic ‘advanced configuration’ is closed to new replies.