{"id":15270382,"date":"2022-01-19T22:12:37","date_gmt":"2022-01-19T22:12:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/advanced-configuration-3\/"},"modified":"2022-01-19T22:12:37","modified_gmt":"2022-01-19T22:12:37","slug":"advanced-configuration-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/advanced-configuration-3\/","title":{"rendered":"advanced configuration"},"content":{"rendered":"<p>the advanced configuration for apache doesn&#8217;t seem to work. I saw another support ticket with a similar problem.<\/p>\n<p>I have tried everything. any ideas?<\/p>\n<p>here is my htaccess<\/p>\n<pre><code>\n\n# BEGIN rlrssslReallySimpleSSL rsssl_version[3.3.5]\n&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine on\nRewriteCond %{HTTPS} !=on [NC]\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}\/$1 [R=301,L]\n&lt;\/IfModule&gt;\n# END rlrssslReallySimpleSSL\n# BEGIN Gzip\n&lt;IfModule mod_deflate.c&gt;\n  # Compress HTML, CSS, JavaScript, Text, XML and fonts\n  AddOutputFilterByType DEFLATE application\/javascript\n  AddOutputFilterByType DEFLATE application\/rss+xml\n  AddOutputFilterByType DEFLATE application\/vnd.ms-fontobject\n  AddOutputFilterByType DEFLATE application\/x-font\n  AddOutputFilterByType DEFLATE application\/x-font-opentype\n  AddOutputFilterByType DEFLATE application\/x-font-otf\n  AddOutputFilterByType DEFLATE application\/x-font-truetype\n  AddOutputFilterByType DEFLATE application\/x-font-ttf\n  AddOutputFilterByType DEFLATE application\/x-javascript\n  AddOutputFilterByType DEFLATE application\/xhtml+xml\n  AddOutputFilterByType DEFLATE application\/xml\n  AddOutputFilterByType DEFLATE font\/opentype\n  AddOutputFilterByType DEFLATE font\/otf\n  AddOutputFilterByType DEFLATE font\/ttf\n  AddOutputFilterByType DEFLATE image\/svg+xml\n  AddOutputFilterByType DEFLATE image\/x-icon\n  AddOutputFilterByType DEFLATE text\/css\n  AddOutputFilterByType DEFLATE text\/html\n  AddOutputFilterByType DEFLATE text\/javascript\n  AddOutputFilterByType DEFLATE text\/plain\n  AddOutputFilterByType DEFLATE text\/xml\n\n  # Remove browser bugs (only needed for really old browsers)\n  BrowserMatch ^Mozilla\/4 gzip-only-text\/html\n  BrowserMatch ^Mozilla\/4\\.0[678] no-gzip\n  BrowserMatch \\bMSIE !no-gzip !gzip-only-text\/html\n  Header append Vary User-Agent\n&lt;\/IfModule&gt;\n# END Gzip\t\n\n# BEGIN Expire headers\n\n&lt;ifModule mod_expires.c&gt;\n   ExpiresActive On\n   ExpiresDefault &quot;access plus 5 seconds&quot;\n   ExpiresByType image\/x-icon &quot;access plus 604800 seconds&quot;\n   ExpiresByType image\/jpeg &quot;access plus 604800 seconds&quot;\n   ExpiresByType image\/png &quot;access plus 604800 seconds&quot;\n   ExpiresByType image\/gif &quot;access plus 604800 seconds&quot;\n   ExpiresByType application\/x-shockwave-flash &quot;access plus 604800 seconds&quot;\n   ExpiresByType text\/css &quot;access plus 604800 seconds&quot;\n   ExpiresByType text\/javascript &quot;access plus 604800 seconds&quot;\n   ExpiresByType application\/javascript &quot;access plus 604800 seconds&quot;\n   ExpiresByType application\/x-javascript &quot;access plus 604800 seconds&quot;\n   ExpiresByType font\/truetype &quot;access plus 604800 seconds&quot;\n   ExpiresByType font\/opentype &quot;access plus 604800 seconds&quot;\n   ExpiresByType application\/x-font-woff &quot;access plus 604800 seconds&quot;\n   ExpiresByType image\/svg+xml &quot;access plus 604800 seconds&quot;\n   ExpiresByType application\/vnd.ms-fontobject &quot;access plus 604800 seconds&quot;\n   ExpiresByType text\/html &quot;access plus 600 seconds&quot;\n   ExpiresByType application\/xhtml+xml &quot;access plus 600 seconds&quot;\n&lt;\/ifModule&gt;\n\n# END Expire headers\n# BEGIN Cache-Control Headers \n\t&lt;IfModule mod_expires.c&gt;\nExpiresActive On\nExpiresDefault A0\n\n&lt;FilesMatch &quot;\\.(html|php|txt|xml|js)$&quot;&gt;\nExpiresDefault A31536000\n&lt;\/FilesMatch&gt;\n\n&lt;FilesMatch &quot;\\.(css)$&quot;&gt;\nExpiresDefault A31536000\n&lt;\/FilesMatch&gt;\n\n&lt;FilesMatch &quot;\\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$&quot;&gt;\nExpiresDefault A31536000\n&lt;\/FilesMatch&gt;\n\n&lt;FilesMatch &quot;\\.(jpg|jpeg|png|gif|swf|webp)$&quot;&gt;\nExpiresDefault A31536000\n&lt;\/FilesMatch&gt;\n&lt;\/IfModule&gt;\n\n&lt;IfModule mod_headers.c&gt;\n  &lt;FilesMatch &quot;\\.(html|php|txt|xml|js)$&quot;&gt;\n   Header set Cache-Control &quot;max-age=31536000&quot;\n  &lt;\/FilesMatch&gt;\n\n  &lt;FilesMatch &quot;\\.(css)$&quot;&gt;\n   Header set Cache-Control &quot;max-age=31536000&quot;\n  &lt;\/FilesMatch&gt;\n\n  &lt;FilesMatch &quot;\\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$&quot;&gt;\n   Header set Cache-Control &quot;max-age=31536000&quot;\n  &lt;\/FilesMatch&gt;\n\n  &lt;FilesMatch &quot;\\.(jpg|jpeg|png|gif|swf|webp)$&quot;&gt;\n   Header set Cache-Control &quot;max-age=31536000&quot;\n  &lt;\/FilesMatch&gt;\n&lt;\/IfModule&gt;\n\n#END Cache-Control Headers\n\n# BEGIN Cache Enabler\n\n&lt;IfModule mod_rewrite.c&gt;\n    &lt;IfModule mod_setenvif.c&gt;\n        RewriteEngine On\n        RewriteBase \/\n\n        # cache directory\n        SetEnvIf Host ^ CE_CACHE_DIR=\/wp-content\/cache\/cache-enabler\n\n        # default cache keys\n        SetEnvIf Host ^ CE_CACHE_KEY_SCHEME http-\n        SetEnvIf Host ^ CE_CACHE_KEY_DEVICE\n        SetEnvIf Host ^ CE_CACHE_KEY_WEBP\n        SetEnvIf Host ^ CE_CACHE_KEY_COMPRESSION\n\n        # scheme cache key\n        RewriteCond %{HTTPS} ^(on|1)$ [OR]\n        RewriteCond %{SERVER_PORT} =443 [OR]\n        RewriteCond %{HTTP:X-Forwarded-Proto} =https [OR]\n        RewriteCond %{HTTP:X-Forwarded-Scheme} =https\n        RewriteRule ^ - [E=CE_CACHE_KEY_SCHEME:https-]\n\n        # device cache key\n         SetEnvIf User-Agent &quot;(Mobile|Android|Silk\/|Kindle|BlackBerry|Opera Mini|Opera Mobi)&quot; CE_CACHE_KEY_DEVICE=-mobile\n\n        # webp cache key\n        # SetEnvIf Accept image\/webp CE_CACHE_KEY_WEBP=-webp\n\n        # compression cache key\n         &lt;IfModule mod_mime.c&gt;\n             SetEnvIf Accept-Encoding gzip CE_CACHE_KEY_COMPRESSION=.gz\n             AddType text\/html .gz\n             AddEncoding gzip .gz\n         &lt;\/IfModule&gt;\n\n        # get cache file\n        SetEnvIf Host ^ CE_CACHE_FILE_DIR=%{ENV:CE_CACHE_DIR}\/%{HTTP_HOST}%{REQUEST_URI}\n        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}\n        SetEnvIf Host ^ CE_CACHE_FILE=%{ENV:CE_CACHE_FILE_DIR}\/%{ENV:CE_CACHE_FILE_NAME}\n\n        # check if cache file exists\n        RewriteCond %{DOCUMENT_ROOT}%{ENV:CE_CACHE_FILE} -f\n\n        # check request method\n        RewriteCond %{REQUEST_METHOD} =GET\n\n        # check permalink structure has trailing slash\n        RewriteCond %{REQUEST_URI} \/[^\\.\/\\?]+(\\?.*)?$\n        # check permalink structure has no trailing slash\n        # RewriteCond %{REQUEST_URI} \/[^\\.\/\\?]+\/(\\?.*)?$\n\n        # check excluded query strings\n        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)).+$\n\n        # check excluded cookies\n        RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_\n\n        # deliver cache file\n        RewriteRule ^ %{ENV:CE_CACHE_FILE} [L]\n    &lt;\/IfModule&gt;\n&lt;\/IfModule&gt;\n\n# END Cache Enabler\n\n# BEGIN WordPress\n# The directives (lines) between &quot;BEGIN WordPress&quot; and &quot;END WordPress&quot; are\n# dynamically generated, and should only be modified via WordPress filters.\n# Any changes to the directives between these markers will be overwritten.\n&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\nRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\nRewriteBase \/\nRewriteRule ^index\\.php$ - [L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/index.php [L]\n&lt;\/IfModule&gt;\n\n# END WordPress<\/code><\/pre>\n<p>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<\/p>\n","protected":false},"template":"","class_list":["post-15270382","topic","type-topic","status-publish","hentry","topic-tag-apache","topic-tag-htaccess","topic-tag-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15270382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15270382\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15270382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}