Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all 19297 articles
Browse latest View live

Internet Explorer User Agent Group

$
0
0

Replies: 0

Hi,

I’ve recently developed a theme that includes a complete escape for internet explorer users using the is_ie() function built into wordpress.

Unfortunately when I cache with your plugin, IE users are served the cached version of the site intended for other browsers.

I’ve identified some ie users by creating a user agent group using the user agent ‘ie’ but the results are inconsistent.

Is there any way to mirror the functionality of the is_ie() function to serve a specific cached version of my site only to ie users like other user agent groups?

Thanks!


How to remove extensive code or hide using hard code?

$
0
0

Replies: 0

@font-face {
font-family: ‘w3tc’;
src: url(‘/plugins/w3-total-cache/pub/fonts/w3tc.eot’);
src: url(‘plugins/w3-total-cache/pub/fonts/w3tc.eot?#iefix’) format(’embedded-opentype’),
url(‘plugins/w3-total-cache/pub/fonts/w3tc.woff’) format(‘woff’),
url(‘plugins/w3-total-cache/pub/fonts/w3tc.ttf’) format(‘truetype’),
url(‘plugins/w3-total-cache/pub/fonts/w3tc.svg#w3tc’) format(‘svg’);
font-weight: normal;
font-style: normal;
}
.w3tc-icon:before{
content:’\0041′; top: 2px;
font-family: ‘w3tc’;

Save action too slow when using Varnish reverse proxy

$
0
0

Replies: 1

Hi.
I’m using W3TC and I’m trying to use it to purge Varnish, but when the option is activated and I try to save a post, it takes a lot of time completing the task. A lot, like 40-60 seconds.
When disabled, everything runs fine.

Any ideas?

Host attachments. Showing old page version in browsers

$
0
0

Replies: 0

When I make a page edit on a wordpress page with Elementor and save it there. Then clear all caches in W3. Then go back to that page and press the F5 button, the old version is still there. Or it’s partly renewed. I’ve been on that page before so the old version is still in the browser. Only when doing a CTRL F5 I see the new good version.
I know that, but my returning customers do not.

So I found out it is because of the W3 total Cache plugin.
Normally checked in the CDN section is: Host attachments. If checked, all attachments will be hosted with the CDN.
So this means that just about everything runs via CDN. In Devtools I see URL’s like: https://cdn… So that function is working.

If I uncheck this then everything goes through the site itself and I see URLs like: https://www….. Now the correct version of the page shows in all browsers.

If I check it again, I will see the wrong / broken / old version again …

So what must I do to solve this? To always see the newest version via CDN of every page?

Internal Server Error showed up after updating settings in W3 total cache plugin

$
0
0

Replies: 0

Hi Developers,

After setting up and adding a new “User Agent Groups” to make redirection for mobile users, my entire website (including admin area) is not accessible and shows following error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@bitcular.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

I tried to fix this error by using techniques given on internet but none of them actually worked for me. I disabled Plugins and renamed .htaccess file and tried to get controls back but it didn’t worked.

Please help me to sort out this issue permanently.

Access to font at from origin has been blocked by CORS policy: No ‘Access-Cont

$
0
0

Replies: 0

Hi, i have one issue in this website. “Access to font at from origin has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource”. This issue is appearing on console and website fonts are not laoding correctly.
This is the link of website.
https://www.chishtybros.com/
this is the link of screenshort
https://imgur.com/hnbuzHg
please guide me how to resolve this issue.
Thank you

Code splitting

$
0
0

Replies: 0

Do you by any chance offer code splitting as a service? I like to think myself rather advanced at getting your plugin iij installed. However I’m having trouble getting the pagespeed score to a reasonable weight. I feel like close splitting could make a difference.

Please let me know
-Mike

New Images Not Visible Using Amazon Cloudfront

$
0
0

Replies: 1

Dear Marko & W3 Total Cache Team,

First of all, accept my greetings.

I have sorted out many issues reading your answers provided by queries raisers.

I search a lot about my CDN issue but couldn’t find any troubleshoot reply so I would like to present myself to sort out my cdn issue(hope you assist me).

I am using Amazon Cloundfront with selection of all possible options but when I enabled CDN, old images are showing properly but recently added images are not visible…can you please give me solution for it? I tried everything to sort it but couldn’t get success.

Awaiting to hear from you soon.


“Submission rejected, token invalid” error in caldera forms

$
0
0

Replies: 1

Hi
I’m using caldera forms and sometimes I get the error “Submission rejected, token invalid” which is probably due to cache time as it says in caldera forms documentation here. I tried the suggestion by reducing “Update external files every:” and “Garbage collection interval:” to 35000 seconds that is safely less than 10 hours; still no luck!
the problem disappears by disabling w3 total cache so it’s safe to say this plugin is causing the issue.
any suggestions what i can do?

Compress lines inside WP

$
0
0

Replies: 1

Which checkbox can be clicked to make it minimum space like:
<!doctype html><html class=”no-js” lang=”en-US”><head><meta charset=”UTF-8″><meta name=”viewport” content=”width=device-width, initial-scale=1″> within one line. Is this possible?

You can see WP installation and theme:
https://gretathemes.com/wordpress-themes/justread/

Admin error after installation – memory limit

$
0
0

Replies: 1

I recently updated my WordPress to the latest version, and my php to 7.x

Everything works except the CMS, which gives an error.

“There has been a critical error on your website. Please check your site admin email inbox for instructions.” (although no email ever arrives) – I believe from error logs its hitting a memory limit (which I cannot raise at this time)

The only way to prevent the error, is to rename/delete W3 Total Cache. So I thought, the plugin probably needs updating to the latest version. however, even after doing this, the admin area breaks again immediately when W3 is installed.

I tried updating through the CMS, and by uploading the zip file. I tried more than one time in case something went wrong during installation.

Everything else works fine except this plugin

  • This topic was modified 15 hours, 3 minutes ago by shorty2240.
  • This topic was modified 15 hours, 1 minute ago by shorty2240.

Cache is not updated on api

$
0
0

Replies: 3

good day

The location is very excellent
And it works normally

I have a phone app on googly play and apply stor

When publishing any topic does not appear in the application

When you stop adding it appears in the application

How to stop cache at api

I use WP REST API

I do not want to save the cache because no problem occurred in the application

Cache does not speak when publishing a new topic

Even when cache is deleted from the site it does not appear

I hope you have a solution to disable cache in the WP REST API

Force Load Lazy Loaded Image

$
0
0

Replies: 0

Hello – I enabled lazy loading on my site and it works great for the most part, however, I have a newsletter popup with an image in it that does not load. I believe it is because the pop-up is offscreen initially and then loads into the screen 5 secs after the user has been on the site. Is there a class to apply to the image so that it can bypass lazy loading and just load?

Find two files of large size

Amazon Cloudfront not working properly with version 13.0 of W3TotalCache

$
0
0

Replies: 0

I am using Amazon Cloudfront CDN. It works perfectly fine with W3TotaclCache version 9.4. But if I upgrade Total Cache to the latest version my page is broken. I can still see calls made to the cloudfront for my static files, but still the page is broken. Please advice. I also tried completely uninstalling and re-installing the latest version, but still facing the same issue.

Since I am forced to use the older version of the plugin, my error log is full of Declaration of W3TC\\DbCache_Wpdb::prepare($query, $args)…. warnings, which I understand has been fixed in newer versions.


Logged in and logged out different screens

$
0
0

Replies: 0

Hi

I was using w3 total cache and i have to delete it to see the problem if coming due to this plugin. because before it was totally fine. now the main problem is that i still can’t see the issue resolved. when i login the video in the top content blog works fine but as soon as i log out it shows black background. please help

#BEST Cache Framework | Is W3TC Provide Hybrid Opcache Page Cache?

$
0
0

Replies: 0

Is W3TC provide hybrid opcache? i mean the page cache is store both in SSD/HDD and also stored in RAM. So, when the server restarted, RAM will take all disk cached to the system, so PHP not compiled the whole website again? For VPS user

Very-very thanks for all your support more than 2 years be your user.

Page_enhanced folders empty

$
0
0

Replies: 5

Hi there,

We have been having lots of server issues related to a massive increase in traffic. I was under the impression the our page_enhanced caching was working, however upon investigation the folders within “wp-content/cache/page_enhanced/” only contain .htaccess files.

I have tried deactivating and reactivating the plugin. Still not working.

When logged in I see the following comment in the html comments:

<!–
Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/

Object Caching 0/0 objects using disk
Page Caching using disk: enhanced{w3tc_pagecache_reject_reason}
Content Delivery Network via Amazon Web Services: CloudFront: cdn.tpet.co.uk (wp-admin)
Minified using disk (wp-admin)

Served from: tpet.co.uk @ 2020-03-23 15:08:29 by W3 Total Cache
–>

The HTACCESS file for the root ‘page_enhanced’ folder is as follows:


# BEGIN W3TC Page Cache cache
Options -MultiViews
<Files ~ "\.(html|html_gzip|html_br|xml|xml_gzip|xml_br)$">
  Order Allow,Deny
  Allow from all
</Files>
EnableSendfile Off 
AddDefaultCharset UTF-8
FileETag MTime Size
<IfModule mod_mime.c>
    AddType text/html .html_gzip
    AddEncoding gzip .html_gzip
    AddType text/xml .xml_gzip
    AddEncoding gzip .xml_gzip
</IfModule>
<IfModule mod_setenvif.c>
    SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
    SetEnvIfNoCase Request_URI \.xml_gzip$ no-gzip
</IfModule>
<IfModule mod_headers.c>
    Header set X-Pingback "https://tpet.co.uk/xmlrpc.php"
    Header set X-Powered-By "W3 Total Cache/0.11.0"
    Header set Pragma "public"
    Header set Cache-Control "public, must-revalidate, proxy-revalidate"
</IfModule>
# END W3TC Page Cache cache

I have looked at the log located here: wp-content/cache/log/000000/pagecache.log

There are several hundred instances of the following ranging from Nov 19 – Nov 25th and then nothing else.

Mon, 25 Nov 2019 09:40:46 +0000 r3

My compatibility test shows the following potential issues:

mod_deflate: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_env: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_expires: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_filter: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_ext_filter: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_headers: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_mime: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_rewrite: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_setenvif: Not detected (required for disk enhanced Page Cache and Browser Cache)

Here is my root .htaccess file:

SetEnv PHPRC /home/u1-sdf843ldsjgd/www/tpet.co.uk/public_html/php.ini

<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
  Header set Access-Control-Allow-Origin "*"
</FilesMatch>

# BEGIN W3TC Browser Cache
<IfModule mod_mime.c>
    AddType text/css .css
    AddType text/x-component .htc
    AddType application/x-javascript .js
    AddType application/javascript .js2
    AddType text/javascript .js3
    AddType text/x-js .js4
    AddType video/asf .asf .asx .wax .wmv .wmx
    AddType video/avi .avi
    AddType image/bmp .bmp
    AddType application/java .class
    AddType video/divx .divx
    AddType application/msword .doc .docx
    AddType application/vnd.ms-fontobject .eot
    AddType application/x-msdownload .exe
    AddType image/gif .gif
    AddType application/x-gzip .gz .gzip
    AddType image/x-icon .ico
    AddType image/jpeg .jpg .jpeg .jpe
    AddType image/webp .webp
    AddType application/json .json
    AddType application/vnd.ms-access .mdb
    AddType audio/midi .mid .midi
    AddType video/quicktime .mov .qt
    AddType audio/mpeg .mp3 .m4a
    AddType video/mp4 .mp4 .m4v
    AddType video/mpeg .mpeg .mpg .mpe
    AddType video/webm .webm
    AddType application/vnd.ms-project .mpp
    AddType application/x-font-otf .otf
    AddType application/vnd.ms-opentype ._otf
    AddType application/vnd.oasis.opendocument.database .odb
    AddType application/vnd.oasis.opendocument.chart .odc
    AddType application/vnd.oasis.opendocument.formula .odf
    AddType application/vnd.oasis.opendocument.graphics .odg
    AddType application/vnd.oasis.opendocument.presentation .odp
    AddType application/vnd.oasis.opendocument.spreadsheet .ods
    AddType application/vnd.oasis.opendocument.text .odt
    AddType audio/ogg .ogg
    AddType application/pdf .pdf
    AddType image/png .png
    AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
    AddType audio/x-realaudio .ra .ram
    AddType image/svg+xml .svg .svgz
    AddType application/x-shockwave-flash .swf
    AddType application/x-tar .tar
    AddType image/tiff .tif .tiff
    AddType application/x-font-ttf .ttf .ttc
    AddType application/vnd.ms-opentype ._ttf
    AddType audio/wav .wav
    AddType audio/wma .wma
    AddType application/vnd.ms-write .wri
    AddType application/font-woff .woff
    AddType application/font-woff2 .woff2
    AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
    AddType application/zip .zip
</IfModule>
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/css A31536000
    ExpiresByType text/x-component A31536000
    ExpiresByType application/x-javascript A31536000
    ExpiresByType application/javascript A31536000
    ExpiresByType text/javascript A31536000
    ExpiresByType text/x-js A31536000
    ExpiresByType video/asf A31536000
    ExpiresByType video/avi A31536000
    ExpiresByType image/bmp A31536000
    ExpiresByType application/java A31536000
    ExpiresByType video/divx A31536000
    ExpiresByType application/msword A31536000
    ExpiresByType application/vnd.ms-fontobject A31536000
    ExpiresByType application/x-msdownload A31536000
    ExpiresByType image/gif A31536000
    ExpiresByType application/x-gzip A31536000
    ExpiresByType image/x-icon A31536000
    ExpiresByType image/jpeg A31536000
    ExpiresByType image/webp A31536000
    ExpiresByType application/json A31536000
    ExpiresByType application/vnd.ms-access A31536000
    ExpiresByType audio/midi A31536000
    ExpiresByType video/quicktime A31536000
    ExpiresByType audio/mpeg A31536000
    ExpiresByType video/mp4 A31536000
    ExpiresByType video/mpeg A31536000
    ExpiresByType video/webm A31536000
    ExpiresByType application/vnd.ms-project A31536000
    ExpiresByType application/x-font-otf A31536000
    ExpiresByType application/vnd.ms-opentype A31536000
    ExpiresByType application/vnd.oasis.opendocument.database A31536000
    ExpiresByType application/vnd.oasis.opendocument.chart A31536000
    ExpiresByType application/vnd.oasis.opendocument.formula A31536000
    ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
    ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
    ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
    ExpiresByType application/vnd.oasis.opendocument.text A31536000
    ExpiresByType audio/ogg A31536000
    ExpiresByType application/pdf A31536000
    ExpiresByType image/png A31536000
    ExpiresByType application/vnd.ms-powerpoint A31536000
    ExpiresByType audio/x-realaudio A31536000
    ExpiresByType image/svg+xml A31536000
    ExpiresByType application/x-shockwave-flash A31536000
    ExpiresByType application/x-tar A31536000
    ExpiresByType image/tiff A31536000
    ExpiresByType application/x-font-ttf A31536000
    ExpiresByType application/vnd.ms-opentype A31536000
    ExpiresByType audio/wav A31536000
    ExpiresByType audio/wma A31536000
    ExpiresByType application/vnd.ms-write A31536000
    ExpiresByType application/font-woff A31536000
    ExpiresByType application/font-woff2 A31536000
    ExpiresByType application/vnd.ms-excel A31536000
    ExpiresByType application/zip A31536000
</IfModule>
<IfModule mod_deflate.c>
    <IfModule mod_setenvif.c>
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
        BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
    </IfModule>
        AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon application/json application/vnd.ms-access video/webm application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel
    <IfModule mod_mime.c>
        # DEFLATE by extension
        AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
</IfModule>
<FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$">
    FileETag MTime Size
    <IfModule mod_headers.c>
        Header set Pragma "public"
        Header append Cache-Control "public"
         Header unset Set-Cookie
         Header set X-Powered-By "W3 Total Cache/0.11.0"
    </IfModule>
</FilesMatch>
<FilesMatch "\.(html|htm|rtf|rtx|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|TXT|XSD|XSL|XML)$">
    FileETag MTime Size
    <IfModule mod_headers.c>
        Header set Pragma "public"
        Header set Cache-Control "public, must-revalidate, proxy-revalidate"
         Header set X-Powered-By "W3 Total Cache/0.11.0"
    </IfModule>
</FilesMatch>
<FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|WEBP|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|_TTF|WAV|WMA|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
    FileETag MTime Size
    <IfModule mod_headers.c>
        Header set Pragma "public"
        Header append Cache-Control "public"
         Header unset Set-Cookie
         Header set X-Powered-By "W3 Total Cache/0.11.0"
    </IfModule>
</FilesMatch>
<FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|json|mdb|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|JSON|MDB|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$">
    FileETag None
    <IfModule mod_headers.c>
         Header unset ETag
         Header unset Last-Modified
    </IfModule>
</FilesMatch>
<IfModule mod_headers.c>
    Header always append X-Frame-Options "SAMEORIGIN"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Content-Type-Options "nosniff"
    Header set Referrer-Policy "no-referrer-when-downgrade"
</IfModule>
# END W3TC Browser Cache
# BEGIN W3TC CDN
<FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|WEBP|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|_TTF|WAV|WMA|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
   <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule .* - [E=CANONICAL:http://%{HTTP_HOST}%{REQUEST_URI},NE]
      RewriteCond %{HTTPS} =on
      RewriteRule .* - [E=CANONICAL:https://%{HTTP_HOST}%{REQUEST_URI},NE]
   </IfModule>
   <IfModule mod_headers.c>
      Header set Link "<%{CANONICAL}e>; rel=\"canonical\""
   </IfModule>
</FilesMatch>
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>
# END W3TC CDN

# BEGIN W3TC Page Cache core
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} =on
    RewriteRule .* - [E=W3TC_SSL:_ssl]
    RewriteCond %{SERVER_PORT} =443
    RewriteRule .* - [E=W3TC_SSL:_ssl]
    RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]
    RewriteRule .* - [E=W3TC_SSL:_ssl]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* - [E=W3TC_ENC:_gzip]
    RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
    RewriteRule .* - [E=W3TC_PREVIEW:_preview]
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} =""
    RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache) [NC]
    RewriteCond %{REQUEST_URI} \/$
    RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -F
    RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} =""
    RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
    RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache) [NC]
    RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml%{ENV:W3TC_ENC}" -F
    RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml%{ENV:W3TC_ENC}" [L]
</IfModule>
# END W3TC Page Cache core
# BEGIN WordPress
# The directives (lines) between <code>BEGIN WordPress</code> and <code>END WordPress</code> 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
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
# BEGIN (mt) controlled settings
#AddHandler php-latest .php
# END (mt) controlled settings
# Wordfence WAF
<Files "php.ini">
<IfModule mod_authz_core.c>
	Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
	Order deny,allow
	Deny from all
</IfModule>
</Files>

# END Wordfence WAF

# BEGIN Hotlinking

# END Hotlinking
AddHandler application/x-httpd-php73 .php .php5 .php4 .php3

I am on a SITEGROUND Cloud server.

I hope I have provided enough information for you to be able to help with this.

Many thanks.

  • This topic was modified 2 hours, 30 minutes ago by flashjunkie.

JSON-LD Syntax error only on HOME page

$
0
0

Replies: 2

Hi!
I use latest W3TC on latest WP, everything works fine. Today I installed plugins “Schema & Structured Data for WP & AMP” and “Accelerated Mobile Pages” and configured “Local Business” type to enhance SEO. Initially GoogleStructuredDataTestingTool showed “JSON-LD Syntax error value object or array expected”, then I came across this post https://wordpress.org/support/topic/minify-is-breaking-yoast-json-ld-meta/ and disabled HTML minify. As a result all pages except HOME page show no error on structure data check. How can I solve the issue on HOME page?
The red mark is on the following code:

[ SNIP! ]

  • This topic was modified 3 hours, 59 minutes ago by Jan Dembowski.

How is this better than just editing the .htaccess file?

$
0
0

Replies: 1

How is this better than just editing the .htaccess file?

Viewing all 19297 articles
Browse latest View live