Strange 302 Found redirect behavior in https with Comet Cache Autoptimize
-
The combination of the Comet Cache and Autoptimize plugins is causing Googlebot and other search engines to perceive headers dictating a 302 Found redirect back to my https home page now once that https page is reached. This in turn is causing Google Search Console to record numerous Soft 404s for perfectly good pages which nonetheless return the same 302 Found redirect to Location: / when fetched as Google. This in turn is crippling the indexing of those pages.
I’m using the latest versions of both plugins
I finally determined this by
– removing my .htaccess file entirely: no effect
– renaming my entire Plugins directory: good, clean 301 –> 200 redirect from root URL name to full https URL
– renaming each plugin individually: no effect
– renaming both Comet Cache and Autoptimize simultaneously: good, clean 301 –> 200 redirect from root URL name to full https URL
– alternately renaming Comet Cache and Autoptimize individually: no effect
In other words, the problem appears when both plugins are active and disappears when both are not.
I get these same results when checking the headers at two different header checker sites.
There was no setting obvious to me in either plugin which might mitigate this header problem, so any insights would be appreciated. Obviously, dumping both plugins is the last thing I wish to do.
An exemplified portion of that endless redirect code once the https page is reached is appended below.
Redirecting to https://www.example.com/ ... 2. REQUESTING: https://www.example.com/ GET / HTTP/1.1 Accept: */* Accept-Encoding: gzip Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Language: en-us,en;q=0.5 User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +https://www.google.com/bot.html) Host: www.example.com Connection: Keep-Alive SERVER RESPONSE: 302 Found Date: Wed, 23 Mar 2016 17:06:29 GMT Server: Apache Expires: Wed, 11 Jan 1984 05:00:00 GMT Cache-Control: no-cache, must-revalidate, max-age=0 Pragma: no-cache Link: <https://www.example.com/wp-json/>; rel=https://api.w.org/ X-Frame-Options: SAMEORIGIN Location: / Cache-Control: max-age=1, private, must-revalidate Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 515 Keep-Alive: timeout=2, max=100 Connection: Keep-Alive Content-Type: text/html; charset="UTF-8" Redirecting to https://www.example.com/ ... 3. REQUESTING: https://www.example.com/
- The topic ‘Strange 302 Found redirect behavior in https with Comet Cache Autoptimize’ is closed to new replies.