Error 418 Wordpress, SSL Redirect and W3 plugin

Asked

Viewed 134 times

1

I bought an SSL certificate for my blog and then went to edit the .htaccess to include 301 redirect.

I received as a reply that there was being too many redirects and then I checked the file and found the commands created by the plugin W3, used for memory control, browser memory usage for acceleration, etc.

Here are the commands:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} =on
RewriteRule .* - [E=W3TC_SSL:_ssl]
RewriteCond %{SERVER_PORT} =443
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 %{REQUEST_URI} \/$
RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wo$
RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%$
RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}$

I want to understand what the Plugin is doing while using all these commands, but specifically the following is sounding very weird:

RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} =""
RewriteCond %{REQUEST_URI} \/$
RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wo$

What it means to use this POST method command at this point in . htaccess and where it is redirecting this information?

How can I disable control of these commands in the W3 plugin without disabling the plugin as a whole?

Because I cannot edit the . htaccess that the plugin does not allow.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.